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 | NoReverseMatch |
Undocumented |
Class | Resolver404 |
Undocumented |
Class | ResolverMatch |
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 | LocalePrefixPattern |
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. |
lang_code
language (either by i18n_patterns or by translated regex).
Return the original URL if no translated version is found.Undocumented
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).