Replaces Django's runserver command with one that includes the Werkzeug debugger (shamelessly ripped out of django-extensions)
Install from PyPI:
pip install django-werkzeug-debugger-runserver
Edit your settings.py and include werkzeug_debugger_runserver in your INSTALLED_APPS before django.contrib.staticfiles:
INSTALLED_APPS = ( # ... 'werkzeug_debugger_runserver', 'django.contrib.staticfiles', # ... )
Start the development server using python manage.py runserver as usual. If you run into an error the debugger-enabled error view will be shown in the browser. If you want to force the debugger view to appear you can do it using something like raise Exception in your code.