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

login(**credentials) [source] If your site uses Django’s authentication

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

get_login_url() Returns the URL that users who don’t pass the test will be redirected to. Returns login_url if

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

login(request, user, backend=None) [source] To log a user in, from a view, use login()

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
Using mixins with class-based views
  • References/Python/Django/Guides

Caution This is an advanced topic. A working knowledge of Django’s class-based

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

__delitem__(key) Example: del request.session['fav_color']. This raises KeyError if the given key

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
views.i18n.JavaScriptCatalog.domain
  • References/Python/Django/Guides

domain Translation domain containing strings to add in the view output. Defaults to 'djangojs'.

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
auth.mixins.AccessMixin.get_permission_denied_message()
  • References/Python/Django/Guides

get_permission_denied_message() When raise_exception is True, this method can be used to control the

2025-01-10 15:47:30