# Documentação Django 5.2.8

# How to deploy Django

Django is full of shortcuts to make web developers’ lives easier, but all those tools are of no use if you can’t easily deploy your sites. Since Django’s inception, ease of deployment has been a major goal.

There are many options for deploying your Django application, based on your architecture or your particular business needs, but that discussion is outside the scope of what Django can give you as guidance.

Django, being a web framework, needs a web server in order to operate. And since most web servers don’t natively speak Python, we need an interface to make that communication happen. The `runserver` command starts a lightweight development server, which is not suitable for production.

Django currently supports two interfaces: WSGI and ASGI.

- WSGI is the main Python standard for communicating between web servers and applications, but it only supports synchronous code.

- ASGI is the new, asynchronous-friendly standard that will allow your Django site to use asynchronous Python features, and asynchronous Django features as they are developed.

You should also consider how you will handle static files for your application, and how to handle error reporting.

Finally, before you deploy your application to production, you should run through our deployment checklist to ensure that your configurations are suitable.

- Como implementar com WSGI
  - Como usar o Django com o Gunicorn
  - Como usar Django com uWSGI
  - Como usar o Django com Apache e `mod_wsgi`
  - How to authenticate against Django’s user database from Apache
  - O objeto `Application`
  - Configurando o módulo de definições.
  - Aplicando o middleware WSGI
- Como fazer o deploy com ASGI
  - How to use Django with Daphne
  - How to use Django with Hypercorn
  - How to use Django with Uvicorn
  - O objeto `Application`
  - Configurando o módulo de definições.
  - Applying ASGI middleware
- Lista de verificação para distribuição
  - Execute `manage.py check --deploy`
  - Switch away from `manage.py runserver`
  - Configurações críticas.
  - Configurações específicas de configurações
  - HTTPS
  - Otimizações de desempenho.
  - Relatório de erro