1
0
mirror of https://github.com/etesync/server synced 2024-11-23 01:08:08 +00:00
etesync-server/etebase_server/asgi.py

20 lines
390 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():
2020-12-28 12:47:41 +00:00
from etebase_fastapi.main import create_application
app = create_application()
app.mount("/", django_application)
return app
2020-07-05 11:57:38 +00:00
application = create_application()