Cannot import ASGI_APPLICATION module while runserver using channels 2

后端 未结 12 1024
孤独总比滥情好
孤独总比滥情好 2021-01-07 19:59

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<

12条回答
  •  醉梦人生
    2021-01-07 20:37

    I solved my problem by:

    • python manage.py migrate
    • python manage.py makemigrations
    • python manage.py migrate

    Also check if you have put the routing.py file in the wrong directory. It should be 'myproject/routing.py'

提交回复
热议问题