utils.translation.ugettext()
  • References/Python/Django/API/Django Utils

ugettext(message) [source] Translates message and returns it in a unicode string

2025-01-10 15:47:30
utils.http.int_to_base36()
  • References/Python/Django/API/Django Utils

int_to_base36(i) [source] Converts a positive integer to a base 36 string. On Python 2 i

2025-01-10 15:47:30
utils.module_loading.import_string()
  • References/Python/Django/API/Django Utils

import_string(dotted_path) [source] Imports a dotted module path and returns the attribute/class

2025-01-10 15:47:30
utils.translation.ungettext_lazy()
  • References/Python/Django/API/Django Utils

ungettext_lazy(singular, plural, number) [source]

2025-01-10 15:47:30
utils.decorators.method_decorator()
  • References/Python/Django/API/Django Utils

method_decorator(decorator, name='') [source] Converts a function decorator into a method

2025-01-10 15:47:30
utils.cache.learn_cache_key()
  • References/Python/Django/API/Django Utils

learn_cache_key(request, response, cache_timeout=None, key_prefix=None) [source] Learns what

2025-01-10 15:47:30
utils.cache.get_max_age()
  • References/Python/Django/API/Django Utils

get_max_age(response) [source] Returns the max-age from the response Cache-Control header

2025-01-10 15:47:30
utils.encoding.escape_uri_path()
  • References/Python/Django/API/Django Utils

escape_uri_path(path) [source] Escapes the unsafe characters from the path portion of a Uniform

2025-01-10 15:47:30
utils.cache.patch_response_headers()
  • References/Python/Django/API/Django Utils

patch_response_headers(response, cache_timeout=None) [source] Adds some useful headers to

2025-01-10 15:47:30
utils.translation.ngettext_lazy()
  • References/Python/Django/API/Django Utils

ngettext_lazy(singular, plural, number) [source]

2025-01-10 15:47:30