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.timezone.localtime()
  • References/Python/Django/API/Django Utils

localtime(value, timezone=None) [source] Converts an aware

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.translation.override()
  • References/Python/Django/API/Django Utils

override(language, deactivate=False) [source] A Python context manager that uses django

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

decorator_from_middleware_with_args(middleware_class) [source] Like decorator_from_middleware

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

__init__(title, link, description, language=None, author_email=None, author_name=None, author_link=None, subtitle=None, categories=None, feed_url=None, feed_copyright=None

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