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

deactivate_all() [source] Makes the active translation object a NullTranslations()

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

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

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

urlsafe_base64_decode(s) [source] Decodes a base64 encoded string, adding back any trailing

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

smart_unicode(s, encoding='utf-8', strings_only=False, errors='strict') Historical name of smart_text(). Only available

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

base36_to_int(s) [source] Converts a base 36 string to an integer. On Python 2 the output

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