---
title: "Using Django"
version: 4.2
locale: es
source: https://docs.djangoproject.com/es/4.2/topics/
canonical: https://djangodocs.dev/es/4.2/topics/
---
# Using Django

Introductions to all the key parts of Django you’ll need to know:

- [How to install Django](/es/4.2/topics/install/)

  - [Instale Python](/es/4.2/topics/install/#install-python)
  - [Install Apache and `mod_wsgi`](/es/4.2/topics/install/#install-apache-and-mod-wsgi)
  - [Get your database running](/es/4.2/topics/install/#get-your-database-running)
  - [Install the Django code](/es/4.2/topics/install/#install-the-django-code)
- [Models and databases](/es/4.2/topics/db/)

  - [Modelos](/es/4.2/topics/db/models/)
  - [Making queries](/es/4.2/topics/db/queries/)
  - [Aggregation](/es/4.2/topics/db/aggregation/)
  - [Search](/es/4.2/topics/db/search/)
  - [Managers](/es/4.2/topics/db/managers/)
  - [Performing raw SQL queries](/es/4.2/topics/db/sql/)
  - [Database transactions](/es/4.2/topics/db/transactions/)
  - [Multiple databases](/es/4.2/topics/db/multi-db/)
  - [Tablespaces](/es/4.2/topics/db/tablespaces/)
  - [Database access optimization](/es/4.2/topics/db/optimization/)
  - [Database instrumentation](/es/4.2/topics/db/instrumentation/)
  - [Fixtures](/es/4.2/topics/db/fixtures/)
  - [Examples of model relationship API usage](/es/4.2/topics/db/examples/)
- [Handling HTTP requests](/es/4.2/topics/http/)

  - [URL dispatcher](/es/4.2/topics/http/urls/)
  - [Writing views](/es/4.2/topics/http/views/)
  - [View decorators](/es/4.2/topics/http/decorators/)
  - [File Uploads](/es/4.2/topics/http/file-uploads/)
  - [Django shortcut functions](/es/4.2/topics/http/shortcuts/)
  - [Generic views](/es/4.2/topics/http/generic-views/)
  - [Middleware](/es/4.2/topics/http/middleware/)
  - [How to use sessions](/es/4.2/topics/http/sessions/)
- [Working with forms](/es/4.2/topics/forms/)

  - [HTML forms](/es/4.2/topics/forms/#html-forms)
  - [Django’s role in forms](/es/4.2/topics/forms/#django-s-role-in-forms)
  - [Forms in Django](/es/4.2/topics/forms/#forms-in-django)
  - [Building a form](/es/4.2/topics/forms/#building-a-form)
  - [More about Django `Form` classes](/es/4.2/topics/forms/#more-about-django-form-classes)
  - [Working with form templates](/es/4.2/topics/forms/#working-with-form-templates)
  - [Further topics](/es/4.2/topics/forms/#further-topics)
- [Plantillas](/es/4.2/topics/templates/)

  - [Lenguaje de plantillas de Django](/es/4.2/topics/templates/#the-django-template-language)
  - [Soporte para motores de plantillas](/es/4.2/topics/templates/#support-for-template-engines)
- [Class-based views](/es/4.2/topics/class-based-views/)

  - [Introduction to class-based views](/es/4.2/topics/class-based-views/intro/)
  - [Built-in class-based generic views](/es/4.2/topics/class-based-views/generic-display/)
  - [Form handling with class-based views](/es/4.2/topics/class-based-views/generic-editing/)
  - [Using mixins with class-based views](/es/4.2/topics/class-based-views/mixins/)
  - [Basic examples](/es/4.2/topics/class-based-views/#basic-examples)
  - [Usage in your URLconf](/es/4.2/topics/class-based-views/#usage-in-your-urlconf)
  - [Subclassing generic views](/es/4.2/topics/class-based-views/#subclassing-generic-views)
  - [Asynchronous class-based views](/es/4.2/topics/class-based-views/#asynchronous-class-based-views)
- [Migrations](/es/4.2/topics/migrations/)

  - [The Commands](/es/4.2/topics/migrations/#the-commands)
  - [Backend Support](/es/4.2/topics/migrations/#backend-support)
  - [Workflow](/es/4.2/topics/migrations/#workflow)
  - [Transactions](/es/4.2/topics/migrations/#transactions)
  - [Dependencies](/es/4.2/topics/migrations/#dependencies)
  - [Migration files](/es/4.2/topics/migrations/#migration-files)
  - [Adding migrations to apps](/es/4.2/topics/migrations/#adding-migrations-to-apps)
  - [Reversing migrations](/es/4.2/topics/migrations/#reversing-migrations)
  - [Historical models](/es/4.2/topics/migrations/#historical-models)
  - [Considerations when removing model fields](/es/4.2/topics/migrations/#considerations-when-removing-model-fields)
  - [Data Migrations](/es/4.2/topics/migrations/#data-migrations)
  - [Squashing migrations](/es/4.2/topics/migrations/#squashing-migrations)
  - [Serializing values](/es/4.2/topics/migrations/#serializing-values)
  - [Supporting multiple Django versions](/es/4.2/topics/migrations/#supporting-multiple-django-versions)
- [Managing files](/es/4.2/topics/files/)

  - [Using files in models](/es/4.2/topics/files/#using-files-in-models)
  - [The `File` object](/es/4.2/topics/files/#the-file-object)
  - [File storage](/es/4.2/topics/files/#file-storage)
- [Testing in Django](/es/4.2/topics/testing/)

  - [Writing and running tests](/es/4.2/topics/testing/overview/)
  - [Testing tools](/es/4.2/topics/testing/tools/)
  - [Advanced testing topics](/es/4.2/topics/testing/advanced/)
- [User authentication in Django](/es/4.2/topics/auth/)

  - [Información general](/es/4.2/topics/auth/#overview)
  - [Installation](/es/4.2/topics/auth/#installation)
  - [`Usage`](/es/4.2/topics/auth/#usage)
- [Django’s cache framework](/es/4.2/topics/cache/)

  - [Setting up the cache](/es/4.2/topics/cache/#setting-up-the-cache)
  - [The per-site cache](/es/4.2/topics/cache/#the-per-site-cache)
  - [The per-view cache](/es/4.2/topics/cache/#the-per-view-cache)
  - [Template fragment caching](/es/4.2/topics/cache/#template-fragment-caching)
  - [The low-level cache API](/es/4.2/topics/cache/#the-low-level-cache-api)
  - [Asynchronous support](/es/4.2/topics/cache/#asynchronous-support)
  - [Downstream caches](/es/4.2/topics/cache/#downstream-caches)
  - [Using `Vary` headers](/es/4.2/topics/cache/#using-vary-headers)
  - [Controlling cache: Using other headers](/es/4.2/topics/cache/#controlling-cache-using-other-headers)
  - [Order of `MIDDLEWARE`](/es/4.2/topics/cache/#order-of-middleware)
- [Conditional View Processing](/es/4.2/topics/conditional-view-processing/)

  - [The `condition` decorator](/es/4.2/topics/conditional-view-processing/#the-condition-decorator)
  - [Shortcuts for only computing one value](/es/4.2/topics/conditional-view-processing/#shortcuts-for-only-computing-one-value)
  - [Using the decorators with other HTTP methods](/es/4.2/topics/conditional-view-processing/#using-the-decorators-with-other-http-methods)
  - [Comparison with middleware conditional processing](/es/4.2/topics/conditional-view-processing/#comparison-with-middleware-conditional-processing)
- [Cryptographic signing](/es/4.2/topics/signing/)

  - [Protecting `SECRET_KEY` and `SECRET_KEY_FALLBACKS`](/es/4.2/topics/signing/#protecting-secret-key-and-secret-key-fallbacks)
  - [Using the low-level API](/es/4.2/topics/signing/#using-the-low-level-api)
- [Sending email](/es/4.2/topics/email/)

  - [Quick example](/es/4.2/topics/email/#quick-example)
  - [`send_mail()`](/es/4.2/topics/email/#send-mail)
  - [`send_mass_mail()`](/es/4.2/topics/email/#send-mass-mail)
  - [`mail_admins()`](/es/4.2/topics/email/#mail-admins)
  - [`mail_managers()`](/es/4.2/topics/email/#mail-managers)
  - [Ejemplos](/es/4.2/topics/email/#examples)
  - [Preventing header injection](/es/4.2/topics/email/#preventing-header-injection)
  - [The `EmailMessage` class](/es/4.2/topics/email/#the-emailmessage-class)
  - [Email backends](/es/4.2/topics/email/#email-backends)
  - [Configuring email for development](/es/4.2/topics/email/#configuring-email-for-development)
- [Internacionalización y localización](/es/4.2/topics/i18n/)

  - [Información general](/es/4.2/topics/i18n/#overview)
  - [Definitions](/es/4.2/topics/i18n/#definitions)
- [Logging](/es/4.2/topics/logging/)

  - [Información general](/es/4.2/topics/logging/#overview)
  - [Implicaciones de seguridad](/es/4.2/topics/logging/#security-implications)
  - [Configuración de registro](/es/4.2/topics/logging/#configuring-logging)
- [Pagination](/es/4.2/topics/pagination/)

  - [The `Paginator` class](/es/4.2/topics/pagination/#the-paginator-class)
  - [Example](/es/4.2/topics/pagination/#example)
  - [Paginating a `ListView`](/es/4.2/topics/pagination/#paginating-a-listview)
  - [Using `Paginator` in a view function](/es/4.2/topics/pagination/#using-paginator-in-a-view-function)
- [Security in Django](/es/4.2/topics/security/)

  - [Cross site scripting (XSS) protection](/es/4.2/topics/security/#cross-site-scripting-xss-protection)
  - [Cross site request forgery (CSRF) protection](/es/4.2/topics/security/#cross-site-request-forgery-csrf-protection)
  - [SQL injection protection](/es/4.2/topics/security/#sql-injection-protection)
  - [Clickjacking protection](/es/4.2/topics/security/#clickjacking-protection)
  - [SSL/HTTPS](/es/4.2/topics/security/#ssl-https)
  - [Host header validation](/es/4.2/topics/security/#host-header-validation)
  - [Referrer policy](/es/4.2/topics/security/#referrer-policy)
  - [Cross-origin opener policy](/es/4.2/topics/security/#cross-origin-opener-policy)
  - [Session security](/es/4.2/topics/security/#session-security)
  - [User-uploaded content](/es/4.2/topics/security/#user-uploaded-content)
  - [Additional security topics](/es/4.2/topics/security/#additional-security-topics)
- [Rendimiento y optimización](/es/4.2/topics/performance/)

  - [Introducción](/es/4.2/topics/performance/#introduction)
  - [General approaches](/es/4.2/topics/performance/#general-approaches)
  - [Caching](/es/4.2/topics/performance/#caching)
  - [Understanding laziness](/es/4.2/topics/performance/#understanding-laziness)
  - [Databases](/es/4.2/topics/performance/#databases)
  - [HTTP performance](/es/4.2/topics/performance/#http-performance)
  - [Template performance](/es/4.2/topics/performance/#template-performance)
  - [Using different versions of available software](/es/4.2/topics/performance/#using-different-versions-of-available-software)
- [Serializing Django objects](/es/4.2/topics/serialization/)

  - [Serializing data](/es/4.2/topics/serialization/#serializing-data)
  - [Deserializing data](/es/4.2/topics/serialization/#deserializing-data)
  - [Serialization formats](/es/4.2/topics/serialization/#serialization-formats)
  - [Natural keys](/es/4.2/topics/serialization/#natural-keys)
- [Django settings](/es/4.2/topics/settings/)

  - [The basics](/es/4.2/topics/settings/#the-basics)
  - [Designating the settings](/es/4.2/topics/settings/#designating-the-settings)
  - [Default settings](/es/4.2/topics/settings/#default-settings)
  - [Using settings in Python code](/es/4.2/topics/settings/#using-settings-in-python-code)
  - [Altering settings at runtime](/es/4.2/topics/settings/#altering-settings-at-runtime)
  - [Seguridad](/es/4.2/topics/settings/#security)
  - [Available settings](/es/4.2/topics/settings/#available-settings)
  - [Creating your own settings](/es/4.2/topics/settings/#creating-your-own-settings)
  - [Using settings without setting `DJANGO_SETTINGS_MODULE`](/es/4.2/topics/settings/#using-settings-without-setting-django-settings-module)
- [Señales](/es/4.2/topics/signals/)

  - [Listening to signals](/es/4.2/topics/signals/#listening-to-signals)
  - [Defining and sending signals](/es/4.2/topics/signals/#defining-and-sending-signals)
  - [Disconnecting signals](/es/4.2/topics/signals/#disconnecting-signals)
- [Framework de comprobación de sistema](/es/4.2/topics/checks/)

  - [Writing your own checks](/es/4.2/topics/checks/#writing-your-own-checks)
- [External packages](/es/4.2/topics/external-packages/)

  - [Localflavor](/es/4.2/topics/external-packages/#localflavor)
  - [Comentarios](/es/4.2/topics/external-packages/#comments)
  - [Formtools](/es/4.2/topics/external-packages/#formtools)
- [Asynchronous support](/es/4.2/topics/async/)

  - [Vistas asincrónicas](/es/4.2/topics/async/#async-views)
  - [Async safety](/es/4.2/topics/async/#async-safety)
  - [Async adapter functions](/es/4.2/topics/async/#async-adapter-functions)
