Last Updated: February 25, 2016
·
1.162K
· rosscdh

Django - interactive debugging

A lesser known tip for django developers.

  1. pip install django_extensions Werkzeug
  2. manage.py runserver_plus - makes use of werkzeug i.e. place an assert False in your code flow and refresh the page.. profit. Of course you should really also be logging and writing tests for this ;)
  3. manage.py clean_pyc - does what it says

2 Responses
Add your response

IV. manage.py shell_plus

over 1 year ago ·

Oh yeah :) just run manage.py and look under the [django_extensions] section to see the list of options :)

over 1 year ago ·