utils.timezone.get_fixed_timezone()
  • References/Python/Django/API/Django Utils

get_fixed_timezone(offset) [source] Returns a

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

templatize(src) [source] Turns a Django template into something that is understood by xgettext

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

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

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

patch_cache_control(response, **kwargs) [source] This function patches the Cache-Control

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

urlquote(url, safe='/') [source] A version of Python’s urllib.quote() function

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

class SafeString A str subclass that has been specifically marked as “safe” (requires no further escaping) for

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

is_naive(value) [source] Returns True if value is naive, False

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

mark_safe(s) [source] Explicitly mark a string as safe for (HTML) output purposes. The returned

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

smart_text(s, encoding='utf-8', strings_only=False, errors='strict') [source] Returns a text

2025-01-10 15:47:30