diff options
author | Tyler Kennedy | 2022-11-26 12:04:04 -0500 |
---|---|---|
committer | GitHub | 2022-11-26 10:04:04 -0700 |
commit | c7588583927e004e10599912f6d7b76413d52730 (patch) | |
tree | 6c6ac1d2a3cc52c5b1e170db3ab78f2fab31022d /takahe/settings/development.py | |
parent | d60ba9a0515aed0b8235a7738a5fecd8fd78f859 (diff) | |
download | takahe-c7588583927e004e10599912f6d7b76413d52730.tar.gz takahe-c7588583927e004e10599912f6d7b76413d52730.tar.bz2 takahe-c7588583927e004e10599912f6d7b76413d52730.zip |
Simplified settings
Migrated settings to typed pydantic settings
Diffstat (limited to 'takahe/settings/development.py')
-rw-r--r-- | takahe/settings/development.py | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/takahe/settings/development.py b/takahe/settings/development.py deleted file mode 100644 index ce75c85..0000000 --- a/takahe/settings/development.py +++ /dev/null @@ -1,28 +0,0 @@ -import os -import sys - -from .base import * # noqa - -# Load secret key from environment with a fallback -SECRET_KEY = os.environ.get("TAKAHE_SECRET_KEY", "insecure_secret") - -# Ensure debug features are on -DEBUG = True - -ALLOWED_HOSTS = ["*"] -CSRF_TRUSTED_ORIGINS = [ - "http://127.0.0.1:8000", - "https://127.0.0.1:8000", -] -SECURE_PROXY_SSL_HEADER = ("HTTP_X_FORWARDED_PROTO", "https") - -EMAIL_BACKEND = "django.core.mail.backends.console.EmailBackend" -SERVER_EMAIL = "test@example.com" - -MAIN_DOMAIN = os.environ.get("TAKAHE_MAIN_DOMAIN", "example.com") -if "/" in MAIN_DOMAIN: - print("TAKAHE_MAIN_DOMAIN should be just the domain name - no https:// or path") - sys.exit(1) - -MEDIA_URL = os.environ.get("TAKAHE_MEDIA_URL", "/media/") -MEDIA_ROOT = os.environ.get("TAKAHE_MEDIA_ROOT", BASE_DIR / "media") |