1๐
Iโve solved the error, i was using the version 3.0.dev20190127224143 of django, and i solved doing the roll back to the version 2.1.7
5๐
You need to add this line to settings.py file.
ASGI_APPLICATION = "routing.application"
found here: Cannot import ASGI_APPLICATION module while runserver using channels 2
2๐
-
put the routing.py in the same level as settings.py.
-
Ensure there is no error in routing.py. You can check it by replacing the content with
from channels.routing import ProtocolTypeRouter
application = ProtocolTypeRouter({
})
and see if it solves.
- [Django]-Django template for loop iterating two item
- [Django]-Get image full url on Django Channel Response
- [Django]-What would be the best way to track Github account activity via their API?
1๐
I have same error because i wrote consumer.py instead of consumers.py by mistake. Then I renamed it to consumers.py and error solved.
- [Django]-Django & South: Adding new field but DatabaseError occurs "table already exists"
- [Django]-Invalid block tag 'set', expected 'empty' or 'endfor'. Did you forget to register or load this tag?
- [Django]-Nginx/gunicorn connection hanging for 60 seconds
- [Django]-How to convert Foreign Key Field into Many To Many Field without disturbing existing data in the database?
0๐
I had same issue because I wrote a class name in imports of asgi.py
file that wasnโt defined. Then I removed that undefined class of authentication and the error was fixed.
Please check your defined imports in asgi.py
file.
0๐
for myself it was beacuse of a missing package called
whitenoise, after installing via pip everything worked fine
pip install whitenoise
0๐
I solved it changing my version of Django from 4.0.5 to 3.2.5; see: https://docs.djangoproject.com/en/4.0/releases/3.2.5/
- [Django]-Django Heroku not serving static files when Debug=False
- [Django]-How to access model data when overriding Django admin templates?
- [Django]-How do I treat django's TemporaryUploadedFile as a regular python file
- [Django]-How to create new tables in Database for each day in Django
- [Django]-Model inheritance in django-nonrel on app engine
- [Django]-Crontab is running but still not executing command Django