我正在尝试使用Django和channel构建聊天应用程序。 但是我无法获取我的视图文件(room.html) 我的主要项目名称是“ techChat”,我有一个名为“聊天”的应用 我正在尝试以下所有代码:-https://channels.readthedocs.io/en/latest/tutorial/part_2.html 当我输入大厅名称时,找不到页面。如果您看一下下面的img的文件结构,那么我也有asgi文件。
帮助!
我的代码
views.py:-
聊天/urls.py(应用url文件):-
techChat / urls.py(主项目urls文件)