views.decorators.cache.never_cache()

never_cache(view_func) [source] This decorator adds a Cache-Control: max-age=0, no-cache, no-store, must-revalidate header to a response to indicate that a page should never be cached. Changed in Django 1.9: Before Django 1.9, Cache-Control: max-age=0 was sent. This didn’t reliably prevent caching in all browsers.

views.decorators.cache.cache_page()

django.views.decorators.cache.cache_page() A more granular way to use the caching framework is by caching the output of individual views. django.views.decorators.cache defines a cache_page decorator that will automatically cache the view’s response for you. It’s easy to use: from django.views.decorators.cache import cache_page @cache_page(60 * 15) def my_view(request): ... cache_page takes a single argument: the cache timeout, in seconds. In the above example, the result of the my_view

views.decorators.cache.cache_control()

cache_control(**kwargs) [source] This decorator patches the response’s Cache-Control header by adding all of the keyword arguments to it. See patch_cache_control() for the details of the transformation.

views.debug.SafeExceptionReporterFilter.is_active()

SafeExceptionReporterFilter.is_active(request) [source] Returns True to activate the filtering operated in the other methods. By default the filter is active if DEBUG is False.

views.debug.SafeExceptionReporterFilter.get_traceback_frame_variables()

SafeExceptionReporterFilter.get_traceback_frame_variables(request, tb_frame) [source] Returns the filtered dictionary of local variables for the given traceback frame. By default it replaces the values of sensitive variables with stars (**********). See also You can also set up custom error reporting by writing a custom piece of exception middleware. If you do write custom error handling, it’s a good idea to emulate Django’s built-in error handling and only report/log errors if DEBUG is Fal

views.debug.SafeExceptionReporterFilter.get_post_parameters()

SafeExceptionReporterFilter.get_post_parameters(request) [source] Returns the filtered dictionary of POST parameters. By default it replaces the values of sensitive parameters with stars (**********).

views.debug.SafeExceptionReporterFilter

class SafeExceptionReporterFilter [source]

utils.translation.ungettext_lazy()

ungettext_lazy(singular, plural, number) [source]

utils.translation.ungettext()

ungettext(singular, plural, number) [source] Translates singular and plural and returns the appropriate string based on number in a unicode string.

utils.translation.ugettext_noop()

ugettext_noop(message) Marks strings for translation but doesn’t translate them now. This can be used to store strings in global variables that should stay in the base language (because they might be used externally) and will be translated later.