From 927933f68e1707ef580fa54ac6f5aae79c88c9f5 Mon Sep 17 00:00:00 2001 From: Michael Hall Date: Sat, 20 Jan 2018 16:51:20 -0500 Subject: [PATCH] Move loading local_settings overrides to the end of settings.py --- get_together/settings.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/get_together/settings.py b/get_together/settings.py index 75123df..946f89b 100644 --- a/get_together/settings.py +++ b/get_together/settings.py @@ -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.") +