Code-Memo

Deployment Checklist: python manage.py check --deploy

When deploying a Django application, it’s essential to make sure that your application is secure and optimized for a production environment. Django provides a management command python manage.py check --deploy to help identify common deployment issues.

1. DEBUG Setting

2. ALLOWED_HOSTS

3. SECRET_KEY

4. Database Security

5. CSRF and Session Security

6. SSL/HTTPS

7. Static and Media Files

8. Security Middleware

9. X-Content-Type-Options Header

10. Content Security Policy

12. Check for Known Vulnerabilities

Additional Tips