You want django.core.urlresolvers.resolve , which allows you to map the URL to the view and maintain a separate URL and view the logic. This is the opposite of django.core.urlresolvers.reverse , which allows you to map the view to the url.
See the documentation on how to use it!
source share