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 CheckURLMixin No class docstring; 2/2 methods documented
Class LocaleRegexDescriptor No class docstring; 0/1 instance variable, 1/2 method documented
Class RegexPattern No class docstring; 0/5 instance variable, 0/1 class variable, 1/6 method documented
Class RoutePattern Undocumented
Function _get_cached_resolver Undocumented
Function _route_to_regex 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...
Constant _PATH_PARAMETER_COMPONENT_RE Undocumented
@functools.lru_cache(maxsize=None)
def _get_cached_resolver(urlconf=None): (source)

Undocumented

def _route_to_regex(route, is_endpoint=False): (source)

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 = (source)

Undocumented

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