If Django's Debug Toolbar doesn't show ...

2014-07-28 | #django, #solution, #webdev

Setting up Django's Debug Toolbar is relatively straight-forward.

pip install django-debug-toolbar

'debug_toolbar' into INSTALLED_APPS

'debug_toolbar.middleware.DebugToolbarMiddleware' into MIDDLEWARE_CLASSES

The tricky part is, that this is all well and good, but to make sure the toolbar actually shows, when working with a dev-VM e.g., you'll have to add two custom settings as well:

INTERNAL_IPS = ('', '192.168.0.xxx',)


Where the second internal IP must be the clients IP as seen from the dev system. Most people set this to the external IP of the dev system first, which is exactly the wrong way round.