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
sessions.backends.cached_db.SessionStore.cache_key_prefix
  • References/Python/Django/Guides

cache_key_prefix New in Django 1.9. A

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

get_all_permissions(obj=None) Returns a set of permission strings that the user has, both through group and user permissions

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

Page.has_other_pages() [source] Returns True if there’s a next or previous

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

create_superuser(*username_field*, password, **other_fields) The prototype of create_superuser() should accept

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

get_test_func() You can also override the get_test_func() method to have the mixin use a differently named function

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

password_reset_done(request, template_name='registration/password_reset_done.html', current_app=None, extra_context=None) The

2025-01-10 15:47:30
utils.translation.get_language_info()
  • References/Python/Django/Guides

get_language_info() [source] The get_language_info() function provides detailed

2025-01-10 15:47:30
conf.urls.i18n.i18n_patterns()
  • References/Python/Django/Guides

i18n_patterns(*urls, prefix_default_language=True) [source] This function can be used in

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

get(key, default=None) Example: fav_color = request.session.get('fav_color', 'red')

2025-01-10 15:47:30