1
0
mirror of https://github.com/etesync/server synced 2024-11-24 01:38:18 +00:00
etesync-server/etebase_server/asgi.py
Xiretza 163f7766f1 fix: move etebase_fastapi module from toplevel to under etebase_server
This is in preparation for creating a python package, which should only
occupy the "etebase_server" name in the global module namespace.
2022-05-09 17:41:16 +02:00

20 lines
397 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_server.fastapi.main import create_application
app = create_application()
app.mount("/", django_application)
return app
application = create_application()