etesync-server/etebase_server/asgi.py

18 lines
343 B
Python
Raw Normal View History

2020-07-05 11:57:38 +00:00
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
2020-07-05 11:57:38 +00:00
application = create_application()