summaryrefslogtreecommitdiff
path: root/example_project/settings.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2016-03-29 17:17:02 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2016-03-29 17:17:02 +0200
commitc50c0e4e5701b9926fbdad82b4ae54964a9283bb (patch)
tree5c533bbeb5c375d1baf86a57bbf71c8314a98e9b /example_project/settings.py
parent64352a56a5ec8c0c64cf213abaa1b369606fd994 (diff)
downloadIshtar-c50c0e4e5701b9926fbdad82b4ae54964a9283bb.tar.bz2
Ishtar-c50c0e4e5701b9926fbdad82b4ae54964a9283bb.zip
Admin: administrativ act readonlyfy
Diffstat (limited to 'example_project/settings.py')
-rw-r--r--example_project/settings.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/example_project/settings.py b/example_project/settings.py
index 98eb14e9e..88738b479 100644
--- a/example_project/settings.py
+++ b/example_project/settings.py
@@ -237,6 +237,8 @@ JQUERY_UI_URL = STATIC_URL + "js/jquery-ui/"
if DEBUG_TOOLBAR:
+ if '..' not in sys.path:
+ sys.path.insert(0, '..')
global DEBUG_TOOLBAR_PANELS
global DEBUG_TOOLBAR_CONFIG
MIDDLEWARE_CLASSES += ['debug_toolbar.middleware.DebugToolbarMiddleware']