uwsgi --ini django.ini
从django.core.wsgi导入get_wsgi_application ImportError: 找不到名为django.core.wsgi的模块
但是我可以按照以下方式导入django.core.wsgi:
>>> import django.core.wsgi
django.ini文件:
[uwsgi] chdir=/path/to/my/app module=app.wsgi:application master=True vacuum=True max-requests=5000 socket=127.0.0.1:9000
wsgi.py
import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "app.settings")
# This application object is used by any WSGI server configured to use this
# file. This includes Django's development server, if the WSGI_APPLICATION
# setting points here.
from django.core.wsgi import get_wsgi_application
application = get_wsgi_application()
django.py
文件吗? - Martijn Pieters