Skip to content

Commit

Permalink
Rename DJANGO_SECRET_KEY to SECRET_KEY
Browse files Browse the repository at this point in the history
  • Loading branch information
rstorey committed Nov 1, 2019
1 parent 99ce099 commit 9488bb3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion concordia/settings_docker.py
Expand Up @@ -7,7 +7,7 @@

DEBUG = os.getenv("DEBUG", "").lower() == "true"

DJANGO_SECRET_KEY = os.getenv("DJANGO_SECRET_KEY", get_random_secret_key())
SECRET_KEY = os.getenv("DJANGO_SECRET_KEY", get_random_secret_key())

EMAIL_BACKEND = "django.core.mail.backends.dummy.EmailBackend"

Expand Down
4 changes: 2 additions & 2 deletions concordia/settings_ecs.py
Expand Up @@ -12,7 +12,7 @@

django_secret_json = get_secret("crowd/%s/Django/SecretKey" % ENV_NAME)
django_secret = json.loads(django_secret_json)
DJANGO_SECRET_KEY = django_secret["DjangoSecretKey"]
SECRET_KEY = django_secret["DjangoSecretKey"]

postgres_secret_json = get_secret("crowd/%s/DB/MasterUserPassword" % ENV_NAME)
postgres_secret = json.loads(postgres_secret_json)
Expand All @@ -26,7 +26,7 @@
EMAIL_HOST_PASSWORD = smtp_secret["Password"]

else:
DJANGO_SECRET_KEY = os.getenv("DJANGO_SECRET_KEY", get_random_secret_key())
SECRET_KEY = os.getenv("DJANGO_SECRET_KEY", get_random_secret_key())
EMAIL_HOST = os.environ.get("EMAIL_HOST", "localhost")
EMAIL_HOST_USER = os.environ.get("EMAIL_HOST_USER", "")
EMAIL_HOST_PASSWORD = os.environ.get("EMAIL_HOST_PASSWORD", "")
Expand Down

0 comments on commit 9488bb3

Please sign in to comment.