16:03 ~ $ cat /home/ulefr01/adressenproject/adressen/settings/prod.py
from .base import *
DEBUG = False
./manage.py collectstatic (production only)
STATIC_ROOT = 'adressen/static'
secure in production
SESSION_COOKIE_SECURE = True
CSRF_COOKIE_SECURE = True
SECURE_HSTS_SECONDS = 31536000
SECURE_HSTS_INCLUDE_SUBDOMAINS = True
SECURE_HSTS_PRELOAD = True
SECURE_SSL_REDIRECT = True
SECURE_REFERRER_POLICY = 'strict-origin'
SECURE_BROWSER_XSS_FILTER = True
16:04 ~ $
(env_adressen) 09:59 ~/adressenproject $ ./manage.py check --deploy
System check identified some issues:
WARNINGS:
?: (security.W018) You should not have DEBUG set to True in deployment.
System check identified 1 issue (0 silenced).