views:

79

answers:

2

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?

+1  A: 

Try this:

>>> from django.core.urlprocessors import get_resolver
>>> get_resolver(None).reverse_dict.keys()
SmileyChris
A: 

There's a plugin I use: http://code.google.com/p/django-command-extensions/, it has a show_urls command that could help.

jobscry