Re: How can I check which view is being called in response to a specific Url?

2008-10-13 Thread David Reynolds
On 12 Oct 2008, at 7:38 pm, shabda wrote: > One of my views is returning a Http404, and I think it is calling a > view function diffrent from what I am expecting to be called. > > So How can I check which view is being called in response to a > specific Url? The X-View header as set by the

Re: How can I check which view is being called in response to a specific Url?

2008-10-12 Thread felix
another way is to use the javascript Bookmarklet. go to Documentation > Bookmarklets also the debug footer http://www.djangosnippets.org/snippets/766/ is very useful, I just added in the code erik allik posted: from django.core.urlresolvers import resolve view_func, args,

Re: How can I check which view is being called in response to a specific Url?

2008-10-12 Thread Erik Allik
from django.core.urlresolvers import resolve view_func, args, kwargs = resolve('/your/url/here/') print '%s.%s' % (view_func.__module__, view_func.__name__) Erik On 12.10.2008, at 21:38, shabda wrote: > > One of my views is returning a Http404, and I think it is calling a > view function

How can I check which view is being called in response to a specific Url?

2008-10-12 Thread shabda
One of my views is returning a Http404, and I think it is calling a view function diffrent from what I am expecting to be called. So How can I check which view is being called in response to a specific Url? --~--~-~--~~~---~--~~ You received this message because