module documentation

This module converts requested URLs to callback view functions.

URLResolver is the main class here. Its resolve() method takes a URL (as a string) and returns a ResolverMatch object which provides access to all attributes of the resolved URL match.

Class ​Check​URLMixin No class docstring; 2/2 methods documented
Class ​Locale​Regex​Descriptor No class docstring; 0/1 instance variable, 1/2 method documented
Class ​Regex​Pattern No class docstring; 0/5 instance variable, 0/1 class variable, 1/6 method documented
Class ​Route​Pattern Undocumented
Function ​_get​_cached​_resolver Undocumented
Function ​_route​_to​_regex No summary
Constant ​_PATH​_PARAMETER​_COMPONENT​_RE Undocumented
@functools.lru_cache(maxsize=None)
def _get_cached_resolver(urlconf=None):

Undocumented

def _route_to_regex(route, is_endpoint=False):
Convert a path pattern into a regular expression. Return the regular expression and a dictionary mapping the capture names to the converters. For example, 'foo/<int:pk>' returns '^foo/(?P<pk>[0-9]+)' and {'pk': <django.urls.converters.IntConverter>}.
_PATH_PARAMETER_COMPONENT_RE =

Undocumented

Value
_lazy_re_compile('<(?:(?P<converter>[^>:]+):)?(?P<parameter>[^>]+)>')