---
title: "Comment utiliser Django avec Hypercorn"
version: 6.0
locale: fr
source: https://docs.djangoproject.com/fr/6.0/howto/deployment/asgi/hypercorn/
canonical: https://djangodocs.dev/fr/6.0/howto/deployment/asgi/hypercorn/
---
# Comment utiliser Django avec Hypercorn

[Hypercorn](https://hypercorn.readthedocs.io/) est un serveur ASGI qui prend en charge HTTP/1, HTTP/2 et HTTP/3 avec un accent sur la prise en charge des protocoles.

## Installation de Hypercorn

Vous pouvez installer Hypercorn avec `pip`:

```shell
python -m pip install hypercorn
```

## Lancement de Django dans Hypercorn

Lorsque [Hypercorn](https://pypi.org/project/Hypercorn/) est installé, une commande `hypercorn` est disponible qui exécute des applications ASGI. Hypercorn a besoin d’être appelé avec l’emplacement d’un module contenant un objet d’application ASGI, suivi par le nom donné à l’application (séparés par un deux-points).

Pour un projet Django typique, l’invocation de Hypercorn pourrait ressembler à ceci :

```shell
hypercorn myproject.asgi:application
```

Cela démarrera un processus écoutant sur `127.0.0.1: 8000`. Il faut que votre projet soit dans le chemin Python ; pour s’en assurer, exécutez cette commande dans le même répertoire que votre fichier `manage.py`.

Pour une utilisation plus avancée, lisez la [documentation Hypercorn](https://hypercorn.readthedocs.io/).
