ValueError: No application configured for scope type ‘http’
in my django terminal message
It’s my first time using Stack Overflow, so it’s hard. Please understand if I’m not good at asking questions
import os
from channels.routing import ProtocolTypeRouter, URLRouter
from channels.auth import AuthMiddlewareStack
import chat.routing
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'hyean.settings')
application = ProtocolTypeRouter({
'websocket': AuthMiddlewareStack(
URLRouter(
chat.routing.websocket_urlpatterns
)
),
})
this is my asgi.py code help me! thank you guys
settings.py
ASGI_APPLICATION = ‘hyean.asgi.application’
New contributor
haenshi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.