Move loading local_settings overrides to the end of settings.py

This commit is contained in:
Michael Hall 2018-01-20 16:51:20 -05:00
parent 63c542d20f
commit 927933f68e

View file

@ -11,11 +11,6 @@ https://docs.djangoproject.com/en/2.0/ref/settings/
"""
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, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
@ -150,3 +145,9 @@ USE_TZ = True
STATIC_URL = '/static/'
try:
from local_settings import *
except:
print("WARNING: You should create a local_settings.py to store local and secret data.")