Browse Source

Fix settings override

Defaults were loaded after local override were.
Jocelyn Delande 9 years ago
parent
commit
c58129d81a
2 changed files with 8 additions and 7 deletions
  1. 6 5
      wifiwithme/settings/dev.py
  2. 2 2
      wifiwithme/settings/prod.py

+ 6 - 5
wifiwithme/settings/dev.py

@@ -1,11 +1,12 @@
-try:
-    from .local import *
-except ImportError:
-    pass
-
 from .base import *
 
 DEBUG = True
 INSTALLED_APPS += [
     'debug_toolbar',
 ]
+
+try:
+    from .local import *
+except ImportError:
+    pass
+

+ 2 - 2
wifiwithme/settings/prod.py

@@ -3,9 +3,9 @@
 DEBUG = False
 SECRET_KEY = None
 
+from .base import *
+
 try:
     from .local import *
 except ImportError:
     pass
-
-from .base import *