I have 2 different behaviors using pdb
In this view:
from django.http import HttpResponse
import pdb; pdb.set_trace()
def index(request):
import pdb; pdb.set_trace()
return HttpResponse("Hello!")
The first debug will work and be raised in the shell but the second
one (inside the function) won't be raised and will generate a web page
that begins with:
> /home/mat/projects/gae-django/dev/polls/views.py(7)index()
-> return HttpResponse("Hello!")
(Pdb)
Status: 500 INTERNAL SERVER ERROR
Content-Type: text/html
and the the rest of the django debug trace will be displayed IN TEXT.
Is it normal?
Thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---