diff --git a/.env-sample-production b/.env-sample-production new file mode 100644 index 0000000..97d09ad --- /dev/null +++ b/.env-sample-production @@ -0,0 +1 @@ +DATABASE_URL=postgres://wooster_django:postgres@10.46.118.26:15432/postgres diff --git a/config/settings/base.py b/config/settings/base.py index e380b0c..288ba78 100644 --- a/config/settings/base.py +++ b/config/settings/base.py @@ -1,6 +1,7 @@ """ Base settings to build other settings files upon. """ + from pathlib import Path import environ # type:ignore @@ -94,6 +95,7 @@ "allauth", "allauth.account", "allauth.socialaccount", + "constance", ] LOCAL_APPS = [ diff --git a/config/settings/local.py b/config/settings/local.py index c0894fd..f5be1d8 100644 --- a/config/settings/local.py +++ b/config/settings/local.py @@ -26,9 +26,9 @@ # EMAIL # ------------------------------------------------------------------------------ # https://docs.djangoproject.com/en/dev/ref/settings/#email-host -EMAIL_HOST = "10.46.119.26" +EMAIL_HOST = env.str("DJANGO_EMAIL_HOST", default="localhost") # https://docs.djangoproject.com/en/dev/ref/settings/#email-port -EMAIL_PORT = 1025 +EMAIL_PORT = env.int("DJANGO_EMAIL_PORT", default=1025) # WhiteNoise # ------------------------------------------------------------------------------