Skip to content

Moving to production

chapado.l@gmail.com edited this page Mar 7, 2019 · 1 revision

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'
Clone this wiki locally