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

format_html(format_string, *args, **kwargs) [source] This is similar to

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

ugettext_noop(message) Marks strings for translation but doesn’t translate them now. This can be used to store strings in global

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

ugettext_lazy(message)

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

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

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

html_safe() [source] The __html__() method on a class helps non-Django templates

2025-01-10 15:47:30