fix some bugs && change push way

This commit is contained in:
2026-08-25 18:54:12 +08:00
parent a32818b55e
commit c65cc92386
40 changed files with 88 additions and 28 deletions

18
config/wsgi.py Normal file
View File

@@ -0,0 +1,18 @@
"""
WSGI config for myblog 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/5.2/howto/deployment/wsgi/
"""
import os
import sys
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'config.settings')
# 将 apps/ 加入 Python 路径
sys.path.insert(0, os.path.join(os.path.dirname(os.path.dirname(__file__)), 'apps'))
application = get_wsgi_application()