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

activate(language) [source] Fetches the translation object for a given language and activates

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

override(timezone) [source] This is a Python context manager that sets the

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

class Rss201rev2Feed(RssFeed) [source] Spec:

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

class SafeText [source] A str (in Python 3) or unicode (in Python

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

force_bytes(s, encoding='utf-8', strings_only=False, errors='strict') [source] Similar to

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

write(outfile, encoding) [source] Outputs the feed in the given encoding to outfile

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

now() [source] Returns a

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

cookie_date(epoch_seconds=None) [source] Formats the time to ensure compatibility with Netscape’s

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

force_text(s, encoding='utf-8', strings_only=False, errors='strict') [source] Similar to

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

class cached_property(object, name) [source] The @cached_property decorator

2025-01-10 15:47:30