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.dateparse.parse_duration()
  • References/Python/Django/API/Django Utils

parse_duration(value) [source] Parses a string and returns a

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

keep_lazy(func, *resultclasses) [source] New

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.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.encoding.python_2_unicode_compatible()
  • References/Python/Django/API/Django Utils

python_2_unicode_compatible() [source] A decorator that defines __unicode__

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

smart_str(s, encoding='utf-8', strings_only=False, errors='strict') Alias of smart_bytes() on Python 2 and

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.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.feedgenerator.SyndicationFeed.num_items()
  • References/Python/Django/API/Django Utils

num_items() [source]

2025-01-10 15:47:30