A checkbox to enable the Django debug toolbar
TL;DR :

I'm happily using this since a long time on genepy.org and a few other projects, so here am I sharing it!
I started to write a long blog post on how to do this (200+ lines!) then I had a better idea: I packaged it!
So here's the repo: https://git.afpy.org/mdk/debug-toolbar-checkbox.
And here's the PyPI page: https://pypi.org/project/django-debug-toolbar-checkbox/.