S
S
sportik1742022-02-23 08:25:27
Django
sportik174, 2022-02-23 08:25:27

How to deploy Django channels to VDS?

My Django application consists of both regular http requests and sockets

. Stack used:
1) Ubuntu 18.04
2) Django 4
3) Channels
4) Gunicorn
5) NGINX
6) Systemd

How to properly deploy all this to the server?
I read the documentation on the channels deployment, it says about some kind of daphne , what is it? Is it a replacement for NGINX? So I didn't understand. Is it possible to use daphne with NGINX?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Gornostaev, 2022-02-23
@sportik174

Daphne is a Gunicorn replacement. Deployment is described in the Channels documentation step by step.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question