Skip to content

djangodocs

Django 5.1
  • 6.1 current
  • 6.0
  • 5.2 LTS
  • 5.1 unsupported
  • 5.0 unsupported
  • 4.2 unsupported
  • 4.1 unsupported
  • 4.0 unsupported
  • 3.2 unsupported
  • 3.1 unsupported
  • 3.0 unsupported
  • 2.2 unsupported
  • 2.1 unsupported
  • 2.0 unsupported
  • 1.11 unsupported
  • 1.10 unsupported
  • 1.9 unsupported
Español
  • English
  • 简体中文
  • Français
  • 日本語
  • Bahasa Indonesia
  • Italiano
  • Português (Brasil)
  • 한국어
  • Español
  • Ελληνικά
  • Polski
Documentation contents
  • Documentación de Django
  • Empezando
  • Using Django
    • How to install Django
    • Models and databases
    • Handling HTTP requests
      • URL dispatcher
      • Writing views
      • View decorators
      • File Uploads
      • Django shortcut functions
      • Generic views
      • Middleware
      • How to use sessions
    • Working with forms
    • Plantillas
    • Class-based views
    • Migraciones
    • Managing files
    • Testing in Django
    • User authentication in Django
    • Django’s cache framework
    • Conditional View Processing
    • Cryptographic signing
    • Sending email
    • Internacionalización y localización
    • Logging
    • Paginación
    • Security in Django
    • Rendimiento y optimización
    • Serializing Django objects
    • Django settings
    • Señales
    • Framework de comprobación de sistema
    • External packages
    • Soporte asíncrono
  • How-to guides
  • FAQ de Django
  • API Reference
  • Documentación meta y miscelánea
  • Glosario
  • Release notes
  • Django internals
Django 5.1 is no longer supported. It receives no security fixes. Use it for reference only. Latest release
Spanish translation. Untranslated passages appear in English. 20.7% Help translate
  1. Django 5.1
  2. Using Django
  3. Handling HTTP requests

Generic viewsLink to this heading#

See Built-in class-based views API.

View as Markdown Edit this page on GitHub Official version
PreviousDjango shortcut functions NextMiddleware

An unofficial rendering of the Django documentation.

Not affiliated with or endorsed by the Django Software Foundation. The documentation is copyright © Django Software Foundation and individual contributors, and is used under the BSD 3-Clause licence. “Django” is a trademark of the Django Software Foundation.

This translation is the work of the Django i18n community, not of this site. Read the official documentation at docs.djangoproject.com.

👋 Jason Cartwright