cache_control(**kwargs) [source] This decorator patches the response’s Cache-Control
require_http_methods(request_method_list) [source] Decorator to require that a view only
handle_no_permission() Depending on the value of raise_exception, the method either raises a PermissionDenied
class RequestFactory [source] The RequestFactory shares the same API as the
test_func() You have to override the test_func() method of the class to provide the test that is performed. Furthermore
class Signer(key=None, sep=':', salt=None) [source] Returns a signer which uses key
status_code The HTTP status of the response, as an integer. For a full list of defined codes, see the
__getitem__(key) Example: fav_color = request.session['fav_color']
create_user(*username_field*, password=None, **other_fields) The prototype of create_user() should accept the username
class base_session.AbstractBaseSession New in Django 1.9.
Page 18 of 35