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
test.SimpleTestCase.assertTemplateUsed()
  • References/Python/Django/Guides

SimpleTestCase.assertTemplateUsed(response, template_name, msg_prefix='', count=None) [source] Asserts

2025-01-10 15:47:30
test.SimpleTestCase.assertXMLEqual()
  • References/Python/Django/Guides

SimpleTestCase.assertXMLEqual(xml1, xml2, msg=None) [source] Asserts that the strings xml1

2025-01-10 15:47:30
test.Client.head()
  • References/Python/Django/Guides

head(path, data=None, follow=False, secure=False, **extra) [source] Makes a HEAD request

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

get_permission_required() Returns an iterable of permission names used by the mixin. Defaults to the permission_required

2025-01-10 15:47:30
core.paginator.Paginator.page()
  • References/Python/Django/Guides

Paginator.page(number) [source] Returns a Page object with the given 1-based

2025-01-10 15:47:30
test.TransactionTestCase.assertNumQueries()
  • References/Python/Django/Guides

TransactionTestCase.assertNumQueries(num, func, *args, **kwargs) [source] Asserts that when

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

clear_expired() Removes expired sessions from the session store. This class method is called by clearsessions.

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

password_reset(request, template_name='registration/password_reset_form.html', email_template_name='registration/password_reset_email.html', subject_template_name='r

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