2020-07-05 11:57:38 +00:00
|
|
|
import os
|
|
|
|
|
|
|
|
from django.core.asgi import get_asgi_application
|
|
|
|
|
2020-11-14 15:04:41 +00:00
|
|
|
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "etebase_server.settings")
|
2020-12-28 11:26:12 +00:00
|
|
|
django_application = get_asgi_application()
|
|
|
|
|
|
|
|
|
|
|
|
def create_application():
|
2022-05-08 12:54:25 +00:00
|
|
|
from etebase_server.fastapi.main import create_application
|
2020-12-28 12:47:41 +00:00
|
|
|
|
|
|
|
app = create_application()
|
2020-12-28 11:26:12 +00:00
|
|
|
|
|
|
|
app.mount("/", django_application)
|
|
|
|
|
|
|
|
return app
|
|
|
|
|
2020-07-05 11:57:38 +00:00
|
|
|
|
2020-12-28 11:26:12 +00:00
|
|
|
application = create_application()
|