I have followed the channels tutorial but while running these error throw
Version of the packages is channels==2.1.2 Django==2.0.4<
I've recently faced to this problem, and quickly solved it.
After checking the configurations in settings.py
and routing.py
, I found the problem is in this line:
from channels.auth import AuthMiddlewareStack
the problem is the version compatibility. Then, I upgraded the requirements.txt
to the below and it works quiet well.
channels==2.4.0
channels-redis==2.4.2
daphne==2.5.0