update asgi starter to 5.0

This commit is contained in:
Johannes Schriewer 2023-12-26 01:19:59 +01:00
parent b9f76acbf8
commit be2f277eb3

View file

@ -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()