django_private_chat2 icon indicating copy to clipboard operation
django_private_chat2 copied to clipboard

Not Found: /chat_ws

Open degradationnn opened this issue 2 years ago • 1 comments

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

degradationnn avatar Jan 16 '23 17:01 degradationnn

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

05ZT30 avatar May 09 '23 08:05 05ZT30