我在连接到我的网站时收到此错误,因为它正在运行频道。
2018-03-25 20:59:19,049 - ERROR - http_protocol - Traceback (most recent call last):
File "/home/.virtualenvs/blog/lib/python3.5/site-packages/daphne/http_protocol.py", line 158, in process
"server": self.server_addr,
File "/home/.virtualenvs/blog/lib/python3.5/site-packages/daphne/server.py", line 184, in create_application
application_instance = self.application(scope=scope)
File "/home/.virtualenvs/blog/lib/python3.5/site-packages/channels/staticfiles.py", line 42, in __call__
return self.application(scope)
TypeError: 'dict' object is not callable
我不知道从哪里开始解码错误。频道服务器设法以此开始
Starting ASGI/Channels development server at http://0.0.0.0:8000/
Quit the server with CONTROL-C.
2018-03-25 20:57:45,400 - INFO - server - HTTP/2 support not enabled (install the http2 and tls Twisted extras)
2018-03-25 20:57:45,400 - INFO - server - Configuring endpoint
tcp:port=8000:interface=0.0.0.0
2018-03-25 20:57:45,401 - INFO - server - Listening on TCP address 0.0.0.0:8000