summaryrefslogtreecommitdiffstats
path: root/takahe/settings
diff options
context:
space:
mode:
authorAndrew Godwin2022-11-17 19:16:34 -0700
committerAndrew Godwin2022-11-17 19:16:34 -0700
commit6adfdbabe0d44c17f32abc9d48a6e252e2a0792e (patch)
tree6644c5eeab7970a9f9b8d9540b7ebe28cc499331 /takahe/settings
parent2a3690d1c148da5dd799052403ba7290e1fb7de0 (diff)
downloadtakahe-6adfdbabe0d44c17f32abc9d48a6e252e2a0792e.tar.gz
takahe-6adfdbabe0d44c17f32abc9d48a6e252e2a0792e.tar.bz2
takahe-6adfdbabe0d44c17f32abc9d48a6e252e2a0792e.zip
Add signup and password reset
Diffstat (limited to 'takahe/settings')
-rw-r--r--takahe/settings/base.py5
-rw-r--r--takahe/settings/development.py2
2 files changed, 7 insertions, 0 deletions
diff --git a/takahe/settings/base.py b/takahe/settings/base.py
index dd89818..04a43dd 100644
--- a/takahe/settings/base.py
+++ b/takahe/settings/base.py
@@ -108,6 +108,11 @@ STATICFILES_DIRS = [
ALLOWED_HOSTS = ["*"]
+MAIN_DOMAIN = os.environ["TAKAHE_MAIN_DOMAIN"]
+if "/" in MAIN_DOMAIN:
+ print("TAKAHE_MAIN_DOMAIN should be just the domain name - no https:// or path")
+
+EMAIL_FROM = os.environ["TAKAHE_EMAIL_FROM"]
# Note that this MUST be a fully qualified URL in production
MEDIA_URL = os.environ.get("TAKAHE_MEDIA_URL", "/media/")
diff --git a/takahe/settings/development.py b/takahe/settings/development.py
index 051b4fb..30f74a0 100644
--- a/takahe/settings/development.py
+++ b/takahe/settings/development.py
@@ -16,3 +16,5 @@ CSRF_TRUSTED_ORIGINS = [
"http://127.0.0.1:8000",
"https://127.0.0.1:8000",
]
+
+EMAIL_BACKEND = "django.core.mail.backends.console.EmailBackend"