In this chapter, we will cover the following recipes:
- Making forms secure from Cross-Site Request Forgery (CSRF)
- Making requests secure with Content Security Policy (CSP)
- Using django-admin-honeypot
- Implementing password validation
- Downloading authorized files
- Adding a dynamic watermark to images
- Authenticating with Auth0
- Caching the method return value
- Using Memcached to cache Django views
- Using Redis to cache Django views