inventory/inventory_project/asgi.py

18 lines
475 B
Python

"""
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/
"""
import os
from channels.routing import ProtocolTypeRouter
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'inventory_project.settings')
application = ProtocolTypeRouter({
# (http->django views is added by default)
})