utils.safestring.SafeBytes
  • References/Python/Django/API/Django Utils

class SafeBytes [source] A bytes subclass that has been specifically marked

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

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

2025-01-10 15:47:30
utils.feedgenerator.SyndicationFeed.add_root_elements()
  • References/Python/Django/API/Django Utils

add_root_elements(handler) [source] Add elements in the root (i.e. feed/channel) element

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

npgettext_lazy(context, singular, plural, number) [source] Same as the non-lazy versions

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

add_never_cache_headers(response) [source] Adds a Cache-Control: max-age=0, no-cache

2025-01-10 15:47:30
utils.feedgenerator.SyndicationFeed.latest_post_date()
  • References/Python/Django/API/Django Utils

latest_post_date() [source] Returns the latest pubdate or updateddate

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

make_aware(value, timezone=None, is_dst=None) [source] Returns an aware

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

iri_to_uri(iri) [source] Convert an Internationalized Resource Identifier (IRI) portion to

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

class Atom1Feed(SyndicationFeed) [source] Spec:

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

check_for_language(lang_code) [source] Checks whether there is a global language file for

2025-01-10 15:47:30