My problem is simple, I have an url, I would like to resolve it, but get the
urlpatterns = patterns('',
url('^/books/$', book_list, name="overview_books"),
Use this snippet (originally taken from
>>> from my_projects.tools import resolve_to_name >>> print resolve_to_name('/some/url') 'app.views.view' >>> print resolve_to_name('/some/other/url') 'this_is_a_named_view'