summaryrefslogtreecommitdiffstats
path: root/takahe/settings/development.py
blob: 4e0098b2a864bdf8b645ec137b3ad3abfe6ce097 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
import os

from .base import *  # noqa

# Load secret key from environment with a fallback
SECRET_KEY = os.environ.get("TAKAHE_SECRET_KEY", "insecure_secret")

# Disable the CRSF origin protection
MIDDLEWARE.insert(0, "core.middleware.AlwaysSecureMiddleware")

# Ensure debug features are on
DEBUG = True
CRISPY_FAIL_SILENTLY = False