test.Client.patch()
  • References/Python/Django/Guides

patch(path, data='', content_type='application/octet-stream', follow=False, secure=False, **extra) [source]

2025-01-10 15:47:30
dispatch.Signal.send_robust()
  • References/Python/Django/Guides

Signal.send_robust(sender, **kwargs) [source] To send a signal, call either Signal

2025-01-10 15:47:30
core.serializers.get_serializer()
  • References/Python/Django/Guides

django.core.serializers.get_serializer(format) You can also use a serializer object directly:

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

send_email(subject_template_name, email_template_name, context, from_email, to_email, html_email_template_name=None) Uses the

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

__contains__(key) Example: 'fav_color' in request.session

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

password_change_done(request, template_name='registration/password_change_done.html', current_app=None, extra_context=None) The

2025-01-10 15:47:30
Form Assets (the Media class)
  • References/Python/Django/Guides

Rendering an attractive and easy-to-use Web form requires more than just HTML - it also requires CSS stylesheets, and if you want to use fancy “Web2.0” widgets, you may also

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

require_GET() Decorator to require that a view only accepts the GET method.

2025-01-10 15:47:30
auth.models.CustomUser.USERNAME_FIELD
  • References/Python/Django/Guides

USERNAME_FIELD A string describing the name of the field on the User model that is used as the unique identifier. This will

2025-01-10 15:47:30
Porting to Python 3
  • References/Python/Django/Guides

Django 1.5 is the first version of Django to support Python 3. The same code runs both on Python 2 (≥ 2.6.5) and Python 3 (≥ 3.2), thanks to the

2025-01-10 15:47:30