-
Notifications
You must be signed in to change notification settings - Fork 36
Moving to production
Before moving your server to production, modify the ‘settings.py’ configuration file as follows:
# Change DEBUG option
DEBUG = False
## Add some security configurations
SECURE_CONTENT_TYPE_NOSNIFF = True
SECURE_BROWSER_XSS_FILTER = True
SESSION_COOKIE_SECURE = True
CSRF_COOKIE_SECURE = True
X_FRAME_OPTIONS = 'DENY'