Writing and running tests
  • References/Python/Django/Guides

See also The testing tutorial, the testing tools

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

REQUIRED_FIELDS A list of the field names that will be prompted for when creating a user via the createsuperuser

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

class serializers.PickleSerializer Supports arbitrary Python objects, but, as described above, can lead to a remote code execution

2025-01-10 15:47:30
db.models.Model.
  • References/Python/Django/Guides

Model._base_manager

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

post(path, data=None, content_type=MULTIPART_CONTENT, follow=False, secure=False, **extra) [source] Makes

2025-01-10 15:47:30
template.loader.get_template()
  • References/Python/Django/Guides

get_template(template_name, using=None) [source] This function loads the template with the

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

class models.PermissionsMixin is_superuser Boolean. Designates that this

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

SimpleTestCase.assertInHTML(needle, haystack, count=None, msg_prefix='') [source] Asserts

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

flush() Deletes the current session data from the session and deletes the session cookie. This is used if you want to ensure

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

get_redirect_field_name() Returns the name of the query parameter that will contain the URL the user should be redirected to

2025-01-10 15:47:30