![]() |
App Engine Python SDK
v1.6.9 rev.445
The Python runtime is available as an experimental Preview feature.
|
Classes | |
class | NoReverseMatch |
class | RegexURLPattern |
class | RegexURLResolver |
class | Resolver404 |
Functions | |
def | get_callable |
def | get_resolver |
def | get_mod_func |
def | resolve |
def | reverse |
def | clear_url_caches |
def | set_script_prefix |
def | get_script_prefix |
def | set_urlconf |
def | get_urlconf |
This module converts requested URLs to callback view functions. RegexURLResolver is the main class here. Its resolve() method takes a URL (as a string) and returns a tuple in this format: (view_function, function_args, function_kwargs)
def google.appengine._internal.django.core.urlresolvers.get_callable | ( | lookup_view, | |
can_fail = False |
|||
) |
Convert a string version of a function name to the callable object. If the lookup_view is not an import path, it is assumed to be a URL pattern label and the original string is returned. If can_fail is True, lookup_view might be a URL pattern label, so errors during the import fail and the string is returned.
def google.appengine._internal.django.core.urlresolvers.get_script_prefix | ( | ) |
Returns 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 google.appengine._internal.django.core.urlresolvers.get_urlconf | ( | default = None | ) |
Returns the root URLconf to use for the current thread if it has been changed from the default one.
def google.appengine._internal.django.core.urlresolvers.set_script_prefix | ( | prefix | ) |
Sets the script prefix for the current thread.
def google.appengine._internal.django.core.urlresolvers.set_urlconf | ( | urlconf_name | ) |
Sets the URLconf for the current thread (overriding the default one in settings). Set to None to revert back to the default.