core.mail.EmailMessage
  • References/Python/Django/Guides

class EmailMessage [source] The EmailMessage class is initialized with the following

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

raise_exception If this attribute is set to True, a PermissionDenied exception will be raised instead

2025-01-10 15:47:30
core.serializers.json.DjangoJSONEncoder
  • References/Python/Django/Guides

class django.core.serializers.json.DjangoJSONEncoder The JSON serializer uses DjangoJSONEncoder for encoding. A

2025-01-10 15:47:30
core.cache.utils.make_template_fragment_key()
  • References/Python/Django/Guides

django.core.cache.utils.make_template_fragment_key(fragment_name, vary_on=None) If you want to obtain the cache key used for

2025-01-10 15:47:30
auth.views.logout()
  • References/Python/Django/Guides

logout(request, next_page=None, template_name='registration/logged_out.html', redirect_field_name='next', current_app=None, extra_context=None)

2025-01-10 15:47:30
Examples of model relationship API usage
  • References/Python/Django/Guides

Many-to-many relationships Many-to-one relationships One-to-one relationships

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

get_expiry_date() Returns the date this session will expire. For sessions with no custom expiration (or those set to expire

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

update_session_auth_hash(request, user) [source] This function takes the current request

2025-01-10 15:47:30
shortcuts.get_list_or_404()
  • References/Python/Django/Guides

get_list_or_404(klass, *args, **kwargs) [source] Returns the result of

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

wsgi_request The WSGIRequest instance generated by the test handler that generated the response.

2025-01-10 15:47:30