Bearle / django_private_chat2

Chat app for Django, powered by Django Channels, Websockets & Asyncio
MIT License
295 stars 80 forks source link

Not Found: /chat_ws #42

Open degradationnn opened 1 year ago

degradationnn commented 1 year ago

Hello !

First of all, thanks for your application, it's very good. As a beginner, I tried your app example. But when I runserver it, I receive this: 16/Jan/2023 17:04:20] "GET /chat_ws HTTP/1.1" 404 3615 Not Found: /chat_ws

And I do not understand why there is a 404 problem with /chat_ws. I can't send message on the server, because my accounts got disconnected continuously. Why ? I think that I've all installed

Thanks for your future response !

Ilann

05ZT30 commented 1 year ago

我也在升级django版本后出现了这个问题,你可以尝试跟着django channel的官方教程做一下已确认你的asgi程序是否被加载,我安装了daphne后,把settings.py文件中的ASGI_APPLICATION = "LivingLibrary.routing.application"修改成了ASGI_APPLICATION = 'LivingLibrary.asgi.application'就可以了