Move loading local_settings overrides to the end of settings.py
This commit is contained in:
parent
63c542d20f
commit
927933f68e
1 changed files with 6 additions and 5 deletions
|
@ -11,11 +11,6 @@ https://docs.djangoproject.com/en/2.0/ref/settings/
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import os
|
import os
|
||||||
try:
|
|
||||||
from local_settings import *
|
|
||||||
|
|
||||||
except:
|
|
||||||
print("WARNING: You should create a local_settings.py to store local and secret data.")
|
|
||||||
|
|
||||||
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
|
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
|
||||||
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
||||||
|
@ -150,3 +145,9 @@ USE_TZ = True
|
||||||
|
|
||||||
STATIC_URL = '/static/'
|
STATIC_URL = '/static/'
|
||||||
|
|
||||||
|
try:
|
||||||
|
from local_settings import *
|
||||||
|
|
||||||
|
except:
|
||||||
|
print("WARNING: You should create a local_settings.py to store local and secret data.")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue