"django_instagram",
'hijack',
'compat',
- 'hijack_admin',
'guardian',
'extra_views',
]
PACKAGE_NAME_GRAPPELLI,
)
-# if DEBUG:
-# OPTIONAL_APPS += ("debug_toolbar",)
-#
-# DEBUG_TOOLBAR_PATCH_SETTINGS = False
-# DEBUG_TOOLBAR_PANELS = [
-# 'debug_toolbar.panels.versions.VersionsPanel',
-# 'debug_toolbar.panels.timer.TimerPanel',
-# 'debug_toolbar.panels.settings.SettingsPanel',
-# 'debug_toolbar.panels.headers.HeadersPanel',
-# 'debug_toolbar.panels.request.RequestPanel',
-# 'debug_toolbar.panels.sql.SQLPanel',
-# 'debug_toolbar.panels.staticfiles.StaticFilesPanel',
-# 'debug_toolbar.panels.templates.TemplatesPanel',
-# 'debug_toolbar.panels.cache.CachePanel',
-# 'debug_toolbar.panels.signals.SignalsPanel',
-# 'debug_toolbar.panels.logging.LoggingPanel',
-# 'debug_toolbar.panels.redirects.RedirectsPanel',
-# ]
-
if DEBUG:
- HIJACK_REGISTER_ADMIN = True
- HIJACK_ALLOW_GET_REQUESTS = True
-else:
- HIJACK_REGISTER_ADMIN = False
- HIJACK_ALLOW_GET_REQUESTS = False
+ OPTIONAL_APPS += ('debug_toolbar', 'hijack_admin',)
+
+DEBUG_TOOLBAR_PATCH_SETTINGS = False
+DEBUG_TOOLBAR_PANELS = [
+ 'debug_toolbar.panels.versions.VersionsPanel',
+ 'debug_toolbar.panels.timer.TimerPanel',
+ 'debug_toolbar.panels.settings.SettingsPanel',
+ 'debug_toolbar.panels.headers.HeadersPanel',
+ 'debug_toolbar.panels.request.RequestPanel',
+ 'debug_toolbar.panels.sql.SQLPanel',
+ 'debug_toolbar.panels.staticfiles.StaticFilesPanel',
+ 'debug_toolbar.panels.templates.TemplatesPanel',
+ 'debug_toolbar.panels.cache.CachePanel',
+ 'debug_toolbar.panels.signals.SignalsPanel',
+ 'debug_toolbar.panels.logging.LoggingPanel',
+ 'debug_toolbar.panels.redirects.RedirectsPanel',
+]
# HIJACK
if DEBUG :