forked from DGNum/gestioCOF
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:
commit
288e3f15b6
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue