views.decorators.cache.cache_control()
  • References/Python/Django/Guides

cache_control(**kwargs) [source] This decorator patches the response’s Cache-Control

2025-01-10 15:47:30
views.decorators.http.require_http_methods()
  • References/Python/Django/Guides

require_http_methods(request_method_list) [source] Decorator to require that a view only

2025-01-10 15:47:30
auth.mixins.AccessMixin.handle_no_permission()
  • References/Python/Django/Guides

handle_no_permission() Depending on the value of raise_exception, the method either raises a PermissionDenied

2025-01-10 15:47:30
test.RequestFactory
  • References/Python/Django/Guides

class RequestFactory [source] The RequestFactory shares the same API as the

2025-01-10 15:47:30
auth.mixins.UserPassesTestMixin.test_func()
  • References/Python/Django/Guides

test_func() You have to override the test_func() method of the class to provide the test that is performed. Furthermore

2025-01-10 15:47:30
core.signing.Signer
  • References/Python/Django/Guides

class Signer(key=None, sep=':', salt=None) [source] Returns a signer which uses key

2025-01-10 15:47:30
test.Response.status_code
  • References/Python/Django/Guides

status_code The HTTP status of the response, as an integer. For a full list of defined codes, see the

2025-01-10 15:47:30
sessions.backends.base.SessionBase.
  • References/Python/Django/Guides

__getitem__(key) Example: fav_color = request.session['fav_color']

2025-01-10 15:47:30
auth.models.CustomUserManager.create_user()
  • References/Python/Django/Guides

create_user(*username_field*, password=None, **other_fields) The prototype of create_user() should accept the username

2025-01-10 15:47:30
sessions.base_session.AbstractBaseSession
  • References/Python/Django/Guides

class base_session.AbstractBaseSession New in Django 1.9.

2025-01-10 15:47:30