urls.resolve()

resolve(path, urlconf=None) [source]

path is the URL path you want to resolve. As with reverse(), you don’t need to worry about the urlconf parameter. The function returns a ResolverMatch object that allows you to access various metadata about the resolved URL.

If the URL does not resolve, the function raises a Resolver404 exception (a subclass of Http404) .

doc_Django
2016-10-09 18:40:16
Comments
Leave a Comment

Please login to continue.