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
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,
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
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
4 matches
Mail list logo