utils.functional.keep_lazy()
  • References/Python/Django/API/Django Utils

keep_lazy(func, *resultclasses) [source] New

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

http_date(epoch_seconds=None) [source] Formats the time to match the

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

add_item_elements(handler, item) [source] Add elements on each item (i.e. item/entry) element

2025-01-10 15:47:30
utils.feedgenerator.Enclosure
  • References/Python/Django/API/Django Utils

class Enclosure [source] Represents an RSS enclosure

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

patch_vary_headers(response, newheaders) [source] Adds (or updates) the Vary

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

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

2025-01-10 15:47:30