Skip to content

Commit

Permalink
Djdt only if DEBUG
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelm committed Feb 17, 2016
1 parent 004ff55 commit 3c39eb2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/pretix/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,9 @@

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

Expand Down

0 comments on commit 3c39eb2

Please sign in to comment.