utils.html.escape()
  • References/Python/Django/API/Django Utils

escape(text) [source] Returns the given text with ampersands, quotes and angle brackets encoded

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

gettext_lazy(message)

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

gettext(message) [source] Translates message and returns it in a UTF-8 bytestring

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

slugify(allow_unicode=False) [source] Converts to ASCII if allow_unicode is

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

deactivate() [source] Deactivates the currently active translation object so that further

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

deactivate() [source] Unsets the current time zone.

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

conditional_escape(text) [source] Similar to escape(), except that it doesn’t

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

npgettext(context, singular, plural, number) [source] Translates singular and

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

class SafeUnicode Historical name of SafeText. Only available under Python 2.

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

root_attributes() [source] Return extra attributes to place on the root (i.e. feed/channel)

2025-01-10 15:47:30