Skip to content
This repository was archived by the owner on Nov 14, 2022. It is now read-only.

Commit 3fabe92

Browse files
PasarusDanNixon
authored andcommitted
Use the DJANGO_SECRET_ENV environment variable for key
1 parent 23426b0 commit 3fabe92

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

autoreduce_qp/autoreduce_django/settings.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
For the full list of settings and their values, see
1010
https://docs.djangoproject.com/en/3.2/ref/settings/
1111
"""
12+
import os
1213
from pathlib import Path
1314

1415
from autoreduce_db.autoreduce_django.settings import DATABASES as autoreduce_db_settings
@@ -20,7 +21,7 @@
2021
# See https://docs.djangoproject.com/en/3.2/howto/deployment/checklist/
2122

2223
# SECURITY WARNING: keep the secret key used in production secret!
23-
SECRET_KEY = 'django-insecure-1_r@nia!d7&9q)yigp=+p5i)p@ei+b(#w71z4ap%)r$9g6-9i!'
24+
SECRET_KEY = os.getenv('DJANGO_SECRET_KEY')
2425

2526
# SECURITY WARNING: don't run with debug turned on in production!
2627
DEBUG = True

0 commit comments

Comments
 (0)