utils.http.urlsafe_base64_encode()
  • References/Python/Django/API/Django Utils

urlsafe_base64_encode(s) [source] Encodes a bytestring in base64 for use in URLs, stripping

2025-01-10 15:47:30
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.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.translation.ungettext()
  • References/Python/Django/API/Django Utils

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

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

add_item_elements(handler, item) [source] Add elements on each item (i.e. item/entry) element

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

get_default_timezone() [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.feedgenerator.SyndicationFeed.latest_post_date()
  • References/Python/Django/API/Django Utils

latest_post_date() [source] Returns the latest pubdate or updateddate

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

is_protected_type(obj) [source] Determine if the object instance is of a protected type.

2025-01-10 15:47:30