Report this

What is the reason for this report?

How to host Django Channels (ASGI) with DigitalOcean Apps?

Posted on July 5, 2021
Michael Chen

By Michael Chen

Web Developer

I followed this official tutorial by DigitalOcean on hosting Django on Apps platform.

The REST endpoints work completely fine, but the WS endpoints aren’t even registered as WS connection attempts. When I connect to wss://lms-backend-wiomf.ondigitalocean.app/ws/teacher/, it shows

[lms-backend] [2021-07-05 03:51:44] Not Found: /ws/teacher/
[lms-backend] [2021-07-05 03:51:44] 10.244.59.39 - - [05/Jul/2021:03:51:44 +0000] "GET /ws/teacher/ HTTP/1.1" 404 2560 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36"

How do I get ASGI to work on DigitalOcean Apps? Are there any tutorials out there?

If it helps, here’s the Github repo.



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hey, Did you find any solution to hosting “asgi” application over the app platform? If any, lmk.

Thanking in advance.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.