shortcuts.redirect()
  • References/Python/Django/Guides

redirect(to, permanent=False, *args, **kwargs) [source] Returns an

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

override_settings() [source] In case you want to override a setting for a test method, Django

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

class models.CustomUser USERNAME_FIELD A string describing the name of the

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

Page.has_previous() [source] Returns True if there’s a previous page.

2025-01-10 15:47:30
views.decorators.gzip.gzip_page()
  • References/Python/Django/Guides

gzip_page() This decorator compresses content if the browser allows gzip compression. It sets the Vary header accordingly

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

Client.session A dictionary-like object containing session information. See the session documentation

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

SimpleTestCase.assertTemplateNotUsed(response, template_name, msg_prefix='') [source] Asserts

2025-01-10 15:47:30
db.migrations.Migration.initial
  • References/Python/Django/Guides

Migration.initial New in Django 1.9. The

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

has_permission() Returns a boolean denoting whether the current user has permission to execute the decorated view. By default

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

encode(session_dict) Returns the given session dictionary serialized and encoded as a string. Encoding

2025-01-10 15:47:30