package documentation

Undocumented

Module conf Functions for use in URLsconfs.
Module base Undocumented
Module converters Undocumented
Module exceptions Undocumented
Module resolvers This module converts requested URLs to callback view functions.
Module utils Undocumented

From __init__.py:

Class ​No​Reverse​Match Undocumented
Class ​Resolver404 Undocumented
Class ​Resolver​Match Undocumented
Function get​_script​_prefix Return the currently active script prefix. Useful for client code that wishes to construct their own URLs manually (although accessing the request instance is normally going to be a lot cleaner).
Function include Undocumented
Function register​_converter Undocumented
Function resolve Undocumented
Function reverse Undocumented
Variable path Undocumented
Variable re​_path Undocumented
Variable reverse​_lazy Undocumented
Class ​Locale​Prefix​Pattern Undocumented
Class ​URLPattern No class docstring; 1/1 property, 0/4 instance variable, 1/6 method documented
Class ​URLResolver No class docstring; 0/5 property, 0/12 instance variable, 0/10 method, 1/2 static method documented
Function clear​_script​_prefix Unset the script prefix for the current thread.
Function clear​_url​_caches Undocumented
Function get​_callable No summary
Function get​_mod​_func Undocumented
Function get​_ns​_resolver Undocumented
Function get​_resolver Undocumented
Function get​_urlconf Return the root URLconf to use for the current thread if it has been changed from the default one.
Function is​_valid​_path Return the ResolverMatch if the given path resolves against the default URL resolver, False otherwise. This is a convenience method to make working with "is this a match?" cases easier, avoiding try...except blocks.
Function set​_script​_prefix Set the script prefix for the current thread.
Function set​_urlconf Set the URLconf for the current thread (overriding the default one in settings). If urlconf_name is None, revert back to the default.
Function translate​_url Given a URL (absolute or relative), try to get its translated version in the lang_code language (either by i18n_patterns or by translated regex). Return the original URL if no translated version is found.
def clear_script_prefix():
Unset the script prefix for the current thread.
def clear_url_caches():

Undocumented

def get_script_prefix():
Return the currently active script prefix. Useful for client code that wishes to construct their own URLs manually (although accessing the request instance is normally going to be a lot cleaner).
def get_urlconf(default=None):
Return the root URLconf to use for the current thread if it has been changed from the default one.
def is_valid_path(path, urlconf=None):
Return the ResolverMatch if the given path resolves against the default URL resolver, False otherwise. This is a convenience method to make working with "is this a match?" cases easier, avoiding try...except blocks.
def resolve(path, urlconf=None):

Undocumented

def reverse(viewname, urlconf=None, args=None, kwargs=None, current_app=None):

Undocumented

reverse_lazy =

Undocumented

def set_script_prefix(prefix):
Set the script prefix for the current thread.
def set_urlconf(urlconf_name):
Set the URLconf for the current thread (overriding the default one in settings). If urlconf_name is None, revert back to the default.
def translate_url(url, lang_code):
Given a URL (absolute or relative), try to get its translated version in the lang_code language (either by i18n_patterns or by translated regex). Return the original URL if no translated version is found.
def include(arg, namespace=None):

Undocumented

path =

Undocumented

re_path =

Undocumented

def register_converter(converter, type_name):

Undocumented

@functools.lru_cache(maxsize=None)
def get_ns_resolver(ns_pattern, resolver, converters):

Undocumented

def get_resolver(urlconf=None):

Undocumented

@functools.lru_cache(maxsize=None)
def get_callable(lookup_view):

Return a callable corresponding to lookup_view. * If lookup_view is already a callable, return it. * If lookup_view is a string import path that can be resolved to a callable,

import that callable and return it, otherwise raise an exception (ImportError or ViewDoesNotExist).
def get_mod_func(callback):

Undocumented