summaryrefslogtreecommitdiffstats
path: root/takahe/settings/development.py
diff options
context:
space:
mode:
authorAndrew Godwin2022-11-12 22:10:06 -0700
committerAndrew Godwin2022-11-12 22:10:06 -0700
commit143a4a6e8c70557710d1b207a176f169d145ed1e (patch)
tree133454aa4da2b5614a33bc4a91d7b152f50eb40c /takahe/settings/development.py
parent878f56b411279cd9865a7ec05f1d14c9f70f6187 (diff)
downloadtakahe-143a4a6e8c70557710d1b207a176f169d145ed1e.tar.gz
takahe-143a4a6e8c70557710d1b207a176f169d145ed1e.tar.bz2
takahe-143a4a6e8c70557710d1b207a176f169d145ed1e.zip
Start some settings work
Diffstat (limited to 'takahe/settings/development.py')
-rw-r--r--takahe/settings/development.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/takahe/settings/development.py b/takahe/settings/development.py
new file mode 100644
index 0000000..4e0098b
--- /dev/null
+++ b/takahe/settings/development.py
@@ -0,0 +1,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