diff options
author | Michael Manfre | 2022-11-13 15:57:27 -0500 |
---|---|---|
committer | GitHub | 2022-11-13 13:57:27 -0700 |
commit | 5a8b6bb3d022a532562ad5fa6d629cfc48c51b46 (patch) | |
tree | 3e47d556e393d707b9ffe4a457e93e9f8b4b2d8a /takahe/settings | |
parent | 30c208226e8eedeb6879f0b771ae9d5987d06aec (diff) | |
download | takahe-5a8b6bb3d022a532562ad5fa6d629cfc48c51b46.tar.gz takahe-5a8b6bb3d022a532562ad5fa6d629cfc48c51b46.tar.bz2 takahe-5a8b6bb3d022a532562ad5fa6d629cfc48c51b46.zip |
Improving contributing docs/process
Diffstat (limited to 'takahe/settings')
-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", +] |