mirror of
https://github.com/pretix/pretix.git
synced 2026-05-07 15:34:02 +00:00
Djdt only if DEBUG
This commit is contained in:
@@ -180,8 +180,9 @@ MIDDLEWARE_CLASSES = [
|
||||
|
||||
try:
|
||||
import debug_toolbar
|
||||
INSTALLED_APPS.append('debug_toolbar.apps.DebugToolbarConfig')
|
||||
MIDDLEWARE_CLASSES.append('debug_toolbar.middleware.DebugToolbarMiddleware')
|
||||
if DEBUG:
|
||||
INSTALLED_APPS.append('debug_toolbar.apps.DebugToolbarConfig')
|
||||
MIDDLEWARE_CLASSES.append('debug_toolbar.middleware.DebugToolbarMiddleware')
|
||||
except ImportError:
|
||||
pass
|
||||
|
||||
|
||||
Reference in New Issue
Block a user