"""
ASGI config for core project.

It exposes the ASGI callable as a module-level variable named ``application``.
"""
import os

import django

from configurations import importer
from channels.routing import get_default_application

os.environ.setdefault("DJANGO_SETTINGS_MODULE", "mysite.settings")
os.environ.setdefault("DJANGO_CONFIGURATION", "Production")

importer.install()
django.setup()

application = get_default_application()
