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

is_staff Returns True if the user is allowed to have access to the admin site.

2025-01-10 15:47:30
Built-in class-based generic views
  • References/Python/Django/Guides

Writing Web applications can be monotonous, because we repeat certain patterns again and again. Django tries to take away some of that monotony at the model and template layers

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
test.Response.json()
  • References/Python/Django/Guides

json(**kwargs) New in Django 1.9. The

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
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
test.Response.content
  • References/Python/Django/Guides

content The body of the response, as a bytestring. This is the final page content as rendered by the view, or any error message

2025-01-10 15:47:30