views.decorators.vary.vary_on_cookie()
  • References/Python/Django/Guides

vary_on_cookie(func) [source]

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

savepoint(using=None) [source] Creates a new savepoint. This marks a point in the transaction

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

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

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
dispatch.receiver()
  • References/Python/Django/Guides

receiver(signal) [source]

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

get_expire_at_browser_close() Returns either True or False, depending on whether the user’s session

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

get_user_model() [source] Instead of referring to

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
auth.models.CustomUserManager
  • References/Python/Django/Guides

class models.CustomUserManager create_user(*username_field*, password=None, **other_fields)

2025-01-10 15:47:30