Files
mandelstudio/mandelstudio/settings/env/stg.py

28 lines
792 B
Python

from ..base import * # pylint:disable=W0401,W0614
try:
from mandelstudio.json import * # pylint:disable=W0401,W0614,E0611,E0401
except ModuleNotFoundError:
pass
DEBUG = False
STATIC_ROOT = "/srv/www/mandelstudio-stg/static/"
MEDIA_ROOT = "/srv/www/mandelstudio-stg/media/"
PRIVATE_MEDIA_ROOT = "/srv/www/mandelstudio-stg/private/"
DATABASES["default"]["NAME"] = "/srv/www/mandelstudio-stg/db.sqlite3"
ALLOWED_HOSTS = [
"mandelstudio.welkombij.mandelblog.com",
]
# Staging should reflect live middleware behavior without edge cache interference.
MIDDLEWARE = [
middleware
for middleware in MIDDLEWARE
if middleware != "ocyan.plugin.varnish.middleware.varnishmiddleware"
]
# Force mail to console
EMAIL_BACKEND = "django.core.mail.backends.console.EmailBackend"