Files
serienbrief_django/app/config/settings/production.py
T

33 lines
920 B
Python
Raw Normal View History

2026-05-21 10:36:16 +02:00
from .base import * # noqa: F401,F403
DEBUG = False
# Strikte Security-Defaults TLS macht der äußere Proxy.
SESSION_COOKIE_SECURE = True
CSRF_COOKIE_SECURE = True
SECURE_HSTS_SECONDS = 0 # HSTS setzt der äußere Proxy
SECURE_HSTS_INCLUDE_SUBDOMAINS = False
SECURE_HSTS_PRELOAD = False
LOGGING = {
"version": 1,
"disable_existing_loggers": False,
"formatters": {
"verbose": {
"format": "{asctime} {levelname} {name} {message}",
"style": "{",
},
},
"handlers": {
"console": {
"class": "logging.StreamHandler",
"formatter": "verbose",
},
},
"root": {"handlers": ["console"], "level": "INFO"},
"loggers": {
"django.security": {"handlers": ["console"], "level": "WARNING", "propagate": False},
"mailmerge": {"handlers": ["console"], "level": "INFO", "propagate": False},
},
}