1👍
It sounds like you have a pdb.set_trace()
somewhere in your code. I would guess in a __unicode__
method or something that is being called during the rendering of the error page. This is predicated on the notion that output from the dev server is buffered.
Another (very likely) possibility is that you have an endlessly recursive call going on somewhere (quite possibly in a similar place as the aforementioned set_trace
situation), but the recursive functionality is taking just long enough that you never see the RuntimeError: maximum recursion depth exceeded
error.
For example:
import time
def foo():
time.sleep(.2)
bar()
def bar():
foo()
bar()
It’s otherwise pretty difficult to make a Python program just hang, unless you do it on purpose.
1👍
See https://code.djangoproject.com/ticket/15132
The workaround is to install “django-extensions” and werkezeug, and start the server with manage.py runserver_plus
. This enhanced development server shows tracebacks by default among other niceties.
- [Answered ]-Is having Django and Backbone.js double templates avoidable?
- [Answered ]-Why does timezone aware datetime have 2 times in django