sessions.backends.base.SessionBase.
  • References/Python/Django/Guides

__setitem__(key, value) Example: request.session['fav_color'] = 'blue'

2025-01-10 15:47:30
db.connection.creation.create_test_db()
  • References/Python/Django/Guides

create_test_db(verbosity=1, autoclobber=False, serialize=True, keepdb=False) Creates a new test database and runs migrate

2025-01-10 15:47:30
core.signing.loads()
  • References/Python/Django/Guides

loads(string, key=None, salt='django.core.signing', max_age=None) [source] Reverse of dumps()

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

set_expiry(value) Sets the expiration time for the session. You can pass a number of different values:

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

set_rollback(rollback, using=None) [source] Setting the rollback flag to True

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

Page.has_next() [source] Returns True if there’s a next page.

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
views.decorators.cache.cache_page()
  • References/Python/Django/Guides

django.views.decorators.cache.cache_page() A more granular way to use the caching framework is by caching the output of individual

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

require_POST() Decorator to require that a view only accepts the POST method.

2025-01-10 15:47:30