Merge branch 'Aufinal/djdt_admin' into 'master'

Remove Django-debug-toolbar in admin interface

See merge request klub-dev-ens/gestioCOF!339
This commit is contained in:
Martin Pepin 2019-01-07 20:58:55 +01:00
commit 288e3f15b6

View file

@ -37,7 +37,7 @@ def show_toolbar(request):
machine physique n'est pas forcément connue, et peut difficilement être
mise dans les INTERNAL_IPS.
"""
return DEBUG
return DEBUG and not request.path.startswith("/admin/")
if not TESTING: