auth.models.PermissionsMixin.has_module_perms()
  • References/Python/Django/Guides

has_module_perms(package_name) Returns True if the user has any permissions in the given package (the Django app

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

SimpleTestCase.assertRaisesMessage(expected_exception, expected_message, callable, *args, **kwargs) [source] SimpleTestCase

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

class TestCase [source] This is the most common class to use for writing tests in Django

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

class models.AbstractBaseUser get_username() Returns the value of the field

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

Model._default_manager If you use custom Manager objects, take note that the first Manager Django

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

class base_session.BaseSessionManager New in Django 1.9.

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

DiscoverRunner.test_runner This is the class of the low-level test runner which is used to execute the individual tests and

2025-01-10 15:47:30
Many-to-one relationships
  • References/Python/Django/Guides

To define a many-to-one relationship, use

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

Signal.send(sender, **kwargs) [source]

2025-01-10 15:47:30
test.runner.DiscoverRunner.setup_databases()
  • References/Python/Django/Guides

DiscoverRunner.setup_databases(**kwargs) Creates the test databases. Returns a data structure

2025-01-10 15:47:30