mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-25 17:22:55 +00:00
29 lines
599 B
Python
29 lines
599 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
|
|
from common import job
|
|
from common.models.db_model_manage import DBModelManage
|
|
event.run()
|
|
job.run()
|
|
DBModelManage.init()
|
|
|
|
|
|
post_handler()
|