1
0
mirror of https://github.com/etesync/server synced 2024-11-28 03:38:07 +00:00
etesync-server/etebase_server/asgi.py

20 lines
397 B
Python
Raw Permalink 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_server.fastapi.main import create_application
2020-12-28 12:47:41 +00:00
app = create_application()
app.mount("/", django_application)
return app
2020-07-05 11:57:38 +00:00
application = create_application()