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