Skip to content

Commit 71be63a

Browse files
added secret.py in gitignore and hid secret_key
1 parent 2eba52a commit 71be63a

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,4 +107,6 @@ db.sqlite3
107107

108108
# Static files
109109
excelplay_kryptos/static
110-
excelplay_kryptos/media
110+
excelplay_kryptos/media
111+
112+
secret.py

excelplay_kryptos/excelplay_kryptos/settings.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,17 @@
1515
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
1616
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
1717

18+
from secret import SECRET
1819

1920
# False if not in os.environ
2021
#DEBUG = env('DEBUG')
2122
DEBUG = False
2223

2324
# Raises django's ImproperlyConfigured exception if SECRET_KEY not in os.environ
2425
#SECRET_KEY = env('SECRET_KEY')
25-
SECRET_KEY = os.environ.get('secret_key')
26+
27+
SECRET_KEY = SECRET
28+
2629
ALLOWED_HOSTS = ['35.200.222.240', 'play-demo.excelmec.org','play.excelmec.org']
2730

2831

0 commit comments

Comments
 (0)