utils.cache.patch_response_headers()
  • References/Python/Django/API/Django Utils

patch_response_headers(response, cache_timeout=None) [source] Adds some useful headers to

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

writeString(encoding) [source] Returns the feed in the given encoding as a string.

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

num_items() [source]

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

item_attributes(item) [source] Return extra attributes to place on each item (i.e. item/entry)

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

ugettext(message) [source] Translates message and returns it in a unicode string

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

escape_uri_path(path) [source] Escapes the unsafe characters from the path portion of a Uniform

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

int_to_base36(i) [source] Converts a positive integer to a base 36 string. On Python 2 i

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

filepath_to_uri(path) [source] Convert a file system path to a URI portion that is suitable

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

python_2_unicode_compatible() [source] A decorator that defines __unicode__

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

decorator_from_middleware(middleware_class) [source] Given a middleware class, returns a

2025-01-10 15:47:30