diff options
Diffstat (limited to 'takahe')
-rw-r--r-- | takahe/settings/base.py | 1 | ||||
-rw-r--r-- | takahe/settings/development.py | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/takahe/settings/base.py b/takahe/settings/base.py index a2ccb98..0619c45 100644 --- a/takahe/settings/base.py +++ b/takahe/settings/base.py @@ -55,6 +55,7 @@ DATABASES = { "default": { "ENGINE": "django.db.backends.postgresql_psycopg2", "HOST": os.environ.get("POSTGRES_HOST", "localhost"), + "PORT": os.environ.get("POSTGRES_PORT", 5432), "NAME": os.environ.get("POSTGRES_DB", "takahe"), "USER": os.environ.get("POSTGRES_USER", "postgres"), "PASSWORD": os.environ.get("POSTGRES_PASSWORD"), diff --git a/takahe/settings/development.py b/takahe/settings/development.py index 4e0098b..54bc35d 100644 --- a/takahe/settings/development.py +++ b/takahe/settings/development.py @@ -11,3 +11,9 @@ MIDDLEWARE.insert(0, "core.middleware.AlwaysSecureMiddleware") # Ensure debug features are on DEBUG = True CRISPY_FAIL_SILENTLY = False + +ALLOWED_HOSTS = ["*"] +CSRF_TRUSTED_ORIGINS = [ + "http://127.0.0.1:8000", + "https://127.0.0.1:8000", +] |