auth.authenticate()
  • References/Python/Django/Guides

authenticate(**credentials) [source] Use authenticate() to verify a set of credentials

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

SimpleTestCase.allow_database_queries New in Django 1.9.

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

class models.BaseUserManager classmethod normalize_email(email) Normalizes

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

set_unusable_password() Marks the user as having no password set. This isn’t the same as having a blank string for a password

2025-01-10 15:47:30
db.transaction.get_autocommit()
  • References/Python/Django/Guides

get_autocommit(using=None) [source]

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

force_login(user, backend=None) [source] New

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

DiscoverRunner.teardown_databases(old_config, **kwargs) Destroys the test databases, restoring pre-test conditions.

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

session_key Primary key. The field itself may contain up to 40 characters. The current implementation generates a 32-character

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

__getitem__(key) Example: fav_color = request.session['fav_color']

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

class SimpleTestCase [source] A subclass of

2025-01-10 15:47:30