Make django debug page simple when develop ajax page(with firebug)
17 views
Skip to first unread message
kernel1983
unread,
Dec 2, 2008, 11:37:32 PM12/2/08
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Django developers
HTML debug page is good when you develop normal web page
But when you debug ajax based web page with firebug, the HTML debug
page is no good for you.
I did some hack in django/views/debug.py
I remove TECHNICAL_404_TEMPLATE TECHNICAL_500_TEMPLATE html tags and
make it simple.
I think we can have a configure key in settings in the future. The
developers can choose which style of debug page to use, by which type
application they're developing.
alex....@gmail.com
unread,
Dec 2, 2008, 11:42:08 PM12/2/08
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Django developers
Perhaps a better solution would be to vary based on request.is_ajax().
Alex
David Cramer
unread,
Dec 3, 2008, 3:31:57 AM12/3/08
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Django developers
I'll agree 100% that a request.is_ajax() hook to output some
simplified data would be awesome.
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to django-d...@googlegroups.com
I wrote a really simple piece of middleware a while back that does just this: http://www.djangosnippets.org/snippets/650/ . I know I have seen other implementations of the idea around the Web as well.
I hope that helps, Michael
dc
unread,
Dec 3, 2008, 11:49:13 AM12/3/08
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Django developers
> I think we can have a configure key in settings in the future. The
> developers can choose which style of debug page to use, by which type
> application they're developing.