How can I see the current urlpatterns that "reverse" is looking in?
I'm calling reverse in a view with an argument that I think should work, but doesn't. Any way I can check what's there and why my pattern isn't?
How can I see the current urlpatterns that "reverse" is looking in?
I'm calling reverse in a view with an argument that I think should work, but doesn't. Any way I can check what's there and why my pattern isn't?
Try this:
>>> from django.core.urlprocessors import get_resolver
>>> get_resolver(None).reverse_dict.keys()
There's a plugin I use: http://code.google.com/p/django-command-extensions/, it has a show_urls command that could help.