mirror of
https://github.com/suitenumerique/docs.git
synced 2026-09-18 07:37:56 +02:00
This is a naive first switch from sync to async. This enables the backend to still answer to incomming requests while streaming LLM results to the user. For sure there is room for code cleaning and improvements, but this provides a nice improvement out of the box.
19 lines
511 B
Python
19 lines
511 B
Python
"""
|
|
WSGI config for the impress project.
|
|
|
|
It exposes the WSGI callable as a module-level variable named ``application``.
|
|
|
|
For more information on this file, see
|
|
https://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/
|
|
"""
|
|
|
|
import os
|
|
|
|
from configurations.wsgi import get_wsgi_application
|
|
|
|
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "impress.settings")
|
|
os.environ.setdefault("DJANGO_CONFIGURATION", "Development")
|
|
os.environ.setdefault("PYTHON_SERVER_MODE", "sync")
|
|
|
|
application = get_wsgi_application()
|