nginx+uwsgi+django中的uwsgi.ini配置问题 5C

最近配置了nginx+uwsgi+django,其中项目目录下我新建了uwsgi.ini配置文件
[uwsgi]
socket = 127.0.0.1:8088
master = true
pidfile = /tmp/uwsgi.pid
processes = 8
chdir = /home/test
daemonize=/home/log/uwsgi.log
module = test.wsgi:application
max-request=5000
其中wsgi.py
import os

from django.core.wsgi import get_wsgi_application

os.environ.setdefault("DJANGO_SETTINGS_MODULE", "test.settings")

application = get_wsgi_application()

启动uwsgi之后,日志报错如下:
*** Python threads support is disabled. You can enable it with --enable-threads ***
Python main interpreter initialized at 0x1aa6b70
your server socket listen backlog is limited to 100 connections
your mercy for graceful operations on workers is 60 seconds
mapped 654840 bytes (639 KB) for 8 cores
*** Operational MODE: preforking ***
ImportError: No module named test.wsgi
unable to load app 0 (mountpoint='') (callable not found or import error)
*** no app loaded. going in full dynamic mode ***
*** uWSGI is running in multiple interpreter mode ***

module明明是对啊,怎么回事,实在不知道问题出在哪里,求解

1个回答

No module named test.wsgi
--- 这个模块在哪里,怎么导入的,你的包,模块名字是否正确

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问