etesync-server/etebase_server/asgi.py
2020-12-28 16:42:39 +02:00

18 lines
343 B
Python

import os
from django.core.asgi import get_asgi_application
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "etebase_server.settings")
django_application = get_asgi_application()
def create_application():
from etebase_fastapi.main import app
app.mount("/", django_application)
return app
application = create_application()