CIDR compatible INTERNAL_IPS with Python 3 Standard Library
use only in a dev environment. * **requirement**: Python 3.3+
- debug-toolbar
- INTERNAL_IPS
- CIDR
use only in a dev environment. * **requirement**: Python 3.3+
When using [django debug toolbar](https://github.com/django-debug-toolbar/django-debug-toolbar), I like to be able to turn debugging on and off without having to edit my settings file. This callback makes that possible. Add `?debug=on` to the URL to turn debugging on. It will remain on in the current session until you turn it off with `?debug=off`. Make sure your session middleware comes before your debug toolbar middleware.
This shows a simple way of adding your project current SVN to the django debug toolbar by creating a custom debug panel.
3 snippets posted so far.