После добавления channels в рабочий проект по всем адресам 500 Internal Server Error. Daphne HTTP processing error
Код ошибки в консоли:
Traceback (most recent call last):
File "C:\ministry\venv\lib\site-packages\daphne\http_protocol.py", line 163, in process
self.application_queue = yield maybeDeferred(
TypeError: __call__() missing 2 required positional arguments: 'receive' and 'send'
HTTP GET / 500 [0.00, 127.0.0.1:1189]
Traceback (most recent call last):
File "C:\ministry\venv\lib\site-packages\daphne\http_protocol.py", line 163, in process
self.application_queue = yield maybeDeferred(
TypeError: __call__() missing 2 required positional arguments: 'receive' and 'send'
HTTP GET /favicon.ico 500 [0.00, 127.0.0.1:1189]
asgi.py:
import os
import django
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'myproj.settings')
django.setup()
application = get_asgi_application()
settigs.py отрывок:
WSGI_APPLICATION = 'myproj.wsgi.application'
ASGI_APPLICATION = 'myproj.asgi.application'
CHANNEL_LAYERS = {
'default': {
'BACKEND': 'channels_redis.core.RedisChannelLayer',
'CONFIG': {
"hosts": [('localhost', 6379)],
},
},
}