MaxKB/apps/smartdoc/wsgi.py
2023-11-16 13:16:27 +08:00

26 lines
537 B
Python

"""
WSGI config for apps 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/4.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'smartdoc.settings')
application = get_wsgi_application()
def post_handler():
from common import event
event.run()
event.ListenerManagement.init_embedding_model_signal.send()
post_handler()