sangue/django/sangue_django/asgi.py

17 lines
433 B
Python

"""
ASGI config for sangue_app 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.1/howto/deployment/asgi/
"""
import os
import django
from channels.routing import get_default_application
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'sangue_django.settings')
django.setup()
application = get_default_application()