Skip to content

Commit

Permalink
Fix #3570 : corrige l'utilisation de django_debug_toolbar en prod (#3580
Browse files Browse the repository at this point in the history
)
  • Loading branch information
gustavi authored and GerardPaligot committed Jun 16, 2016
1 parent 4a8cd7d commit e463dc1
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions zds/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,11 +284,6 @@
'link'
)

if DEBUG:
INSTALLED_APPS += (
'debug_toolbar',
)

# A sample logging configuration. The only tangible logging
# performed by this configuration is to send an email to
# the site admins on every HTTP 500 error when DEBUG=False.
Expand Down Expand Up @@ -581,3 +576,9 @@
from settings_prod import * # noqa
except ImportError:
pass

# MUST BE after settings_prog import
if DEBUG:
INSTALLED_APPS += (
'debug_toolbar',
)

0 comments on commit e463dc1

Please sign in to comment.