Spaces:
Running
Running
BloodyInside
commited on
Commit
•
4855d7d
1
Parent(s):
5a23da9
PP
Browse files- core/settings.py +4 -1
core/settings.py
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
from pathlib import Path
|
2 |
-
import environ, dj_database_url
|
3 |
|
4 |
import pymysql
|
5 |
pymysql.install_as_MySQLdb()
|
@@ -11,6 +11,9 @@ BASE_DIR = Path(__file__).resolve().parent.parent
|
|
11 |
|
12 |
env = environ.Env()
|
13 |
environ.Env.read_env(Path.joinpath(BASE_DIR, '.env'))
|
|
|
|
|
|
|
14 |
|
15 |
# Quick-start development settings - unsuitable for production
|
16 |
# See https://docs.djangoproject.com/en/4.0/howto/deployment/checklist/
|
|
|
1 |
from pathlib import Path
|
2 |
+
import environ, dj_database_url,os
|
3 |
|
4 |
import pymysql
|
5 |
pymysql.install_as_MySQLdb()
|
|
|
11 |
|
12 |
env = environ.Env()
|
13 |
environ.Env.read_env(Path.joinpath(BASE_DIR, '.env'))
|
14 |
+
for key, value in os.environ.items():
|
15 |
+
env.ENVIRON[key] = value
|
16 |
+
|
17 |
|
18 |
# Quick-start development settings - unsuitable for production
|
19 |
# See https://docs.djangoproject.com/en/4.0/howto/deployment/checklist/
|