---
title: "Como usar o Django com o Gunicorn"
version: 4.2
locale: pt-br
source: https://docs.djangoproject.com/pt-br/4.2/howto/deployment/wsgi/gunicorn/
canonical: https://djangodocs.dev/pt-br/4.2/howto/deployment/wsgi/gunicorn/
---
# Como usar o Django com o Gunicorn

[Gunicorn](https://gunicorn.org/) (‘Green Unicorn’) is a pure-Python WSGI server for UNIX. It has no
dependencies and can be installed using `pip`.

## Instalando o Gunicorn

Install gunicorn by running `python -m pip install gunicorn`. For more
details, see the [gunicorn documentation](https://docs.gunicorn.org/en/latest/install.html).

## Rodando Django em Gunicorn como  uma aplicação WSGI genérica.

When Gunicorn is installed, a `gunicorn` command is available which starts
the Gunicorn server process. The simplest invocation of gunicorn is to pass the
location of a module containing a WSGI application object named
`application`, which for a typical Django project would look like:

```shell
gunicorn myproject.wsgi
```

Isso irá iniciar um processo de uma thread escutando na `127.0.0.1:8000`. Isso requer que seu projeto esteja no path Python; a maneira mais simples de verificar isso é rodar este comando do memso diretório que seu arquivo `manage.py`

Veja  [deployment documentation](https://docs.gunicorn.org/en/latest/deploy.html)  do Gunicorn para dicas adicionais
