import os

import django

os.environ.setdefault("DJANGO_SETTINGS_MODULE", "testapp.settings")
django.setup()

from django.core.asgi import get_asgi_application
from mizan import wrap_asgi

# Register server functions and channels before building the ASGI app
import testapp.clients  # noqa: F401

application = wrap_asgi(get_asgi_application())
