Commit 9998b3f 1 parent 8ad14fa commit 9998b3f Copy full SHA for 9998b3f
File tree 2 files changed +22
-2
lines changed
2 files changed +22
-2
lines changed Original file line number Diff line number Diff line change 1
- """
2
- Django settings for goal3 project.
1
+ """Django settings for goal3 project.
3
2
4
3
Generated by 'django-admin startproject' using Django 3.0.6.
5
4
20
19
# See https://docs.djangoproject.com/en/3.0/howto/deployment/checklist/
21
20
22
21
# SECURITY WARNING: keep the secret key used in production secret!
22
+ import os
23
+ import dotenv
24
+
25
+ # Add .env variables anywhere before SECRET_KEY
26
+ dotenv_file = os .path .join (BASE_DIR , ".env" )
27
+ if os .path .isfile (dotenv_file ):
28
+ dotenv .load_dotenv (dotenv_file )
29
+
30
+ # Update secret key
23
31
SECRET_KEY = os .environ ['DJANGO_SECRET_KEY' ]
24
32
25
33
# SECURITY WARNING: don't run with debug turned on in production!
37
45
'django.contrib.sessions' ,
38
46
'django.contrib.messages' ,
39
47
'django.contrib.staticfiles' ,
48
+ 'rest_framework' ,
40
49
]
41
50
42
51
MIDDLEWARE = [
Original file line number Diff line number Diff line change 1
1
asgiref == 3.2.7
2
+ astroid == 2.4.1
3
+ colorama == 0.4.3
2
4
Django == 3.0.6
5
+ djangorestframework == 3.11.0
6
+ isort == 4.3.21
7
+ lazy-object-proxy == 1.4.3
8
+ mccabe == 0.6.1
3
9
psycopg2 == 2.8.5
10
+ pylint == 2.5.2
11
+ python-dotenv == 0.13.0
4
12
pytz == 2020.1
13
+ six == 1.14.0
5
14
sqlparse == 0.3.1
15
+ toml == 0.10.1
16
+ wrapt == 1.12.1
You can’t perform that action at this time.
0 commit comments