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

ngettext(singular, plural, number) [source] Translates singular and plural

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

add_item(title, link, description, author_email=None, author_name=None, author_link=None, pubdate=None, comments=None, unique_id=None, enclosure=None, categories=(),

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

strip_tags(value) [source] Tries to remove anything that looks like an HTML tag from the

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

get_default_timezone_name() [source] Returns the name of the default

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

allow_lazy(func, *resultclasses) [source] Deprecated

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

is_aware(value) [source] Returns True if value is aware, False

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

get_tag_uri(url, date) [source] Creates a TagURI. See

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.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