From a05b5b86ee53497a88fe4cde8536380ed25c9e12 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Tue, 29 Mar 2016 17:17:02 +0200 Subject: Admin: administrativ act readonlyfy --- example_project/settings.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'example_project/settings.py') 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'] -- cgit v1.2.3