update asgi starter to 5.0
This commit is contained in:
parent
b9f76acbf8
commit
be2f277eb3
1 changed files with 4 additions and 6 deletions
|
@ -4,15 +4,13 @@ ASGI config for inventory_project project.
|
|||
It exposes the ASGI callable as a module-level variable named ``application``.
|
||||
|
||||
For more information on this file, see
|
||||
https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/
|
||||
https://docs.djangoproject.com/en/5.0/howto/deployment/asgi/
|
||||
"""
|
||||
|
||||
import os
|
||||
from channels.routing import ProtocolTypeRouter
|
||||
|
||||
from django.core.asgi import get_asgi_application
|
||||
|
||||
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'inventory_project.settings')
|
||||
|
||||
|
||||
application = ProtocolTypeRouter({
|
||||
# (http->django views is added by default)
|
||||
})
|
||||
application = get_asgi_application()
|
||||
|
|
Loading…
Reference in a new issue