File tree 3 files changed +9
-1
lines changed
3 files changed +9
-1
lines changed Original file line number Diff line number Diff line change
1
+ SECRET_KEY = c@mzjzz2yu&idjufq$4k (gl_p5%e4x0f(k7(4))qqt*1k5w2p7
Original file line number Diff line number Diff line change 11
11
"""
12
12
13
13
import os
14
+ import environ
15
+
16
+
17
+ # Initialise environment variables
18
+ env = environ .Env ()
19
+ environ .Env .read_env ()
14
20
15
21
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
16
22
BASE_DIR = os .path .dirname (os .path .dirname (os .path .abspath (__file__ )))
20
26
# See https://docs.djangoproject.com/en/2.2/howto/deployment/checklist/
21
27
22
28
# SECURITY WARNING: keep the secret key used in production secret!
23
- SECRET_KEY = 'c@mzjzz2yu&idjufq$4k(gl_p5%e4x0f(k7(4))qqt*1k5w2p7'
29
+ SECRET_KEY = env ( 'SECRET_KEY' )
24
30
25
31
# SECURITY WARNING: don't run with debug turned on in production!
26
32
DEBUG = True
Original file line number Diff line number Diff line change @@ -3,3 +3,4 @@ Django==3.1.7
3
3
Pillow == 8.1.0
4
4
pytz == 2021.1
5
5
sqlparse == 0.4.1
6
+ django-environ == 0.11.2
You can’t perform that action at this time.
0 commit comments