Created
March 3, 2013 03:34
-
-
Save guyrt/5074374 to your computer and use it in GitHub Desktop.
Get all named url patterns in django
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.core import urlresolvers | |
resolver = urlresolvers.get_resolver(None) | |
url_re_list = ['^/' + url[1] for url in resolver.reverse_dict.itervalues()] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment