最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

django - I am trying to run uwsg-emporer vassal and it can't find my python - Stack Overflow

programmeradmin4浏览0评论

When I create a uwsgi vassal ini file, the server throws this error when I hit the site:

--- no python application found, check your startup logs for errors ---

The virtualenv is correct and if I do python manage.py check I do not have errors and python manage.py runserver runs a dev version fine. I first source in my venv so I know python is installed in the Virtual Envelope at this path: /var/www/webapps/lhhs/env

this is my .ini file

[uwsgi]
uid = www-data
socket = /var/www/webapps/lhhs/lhhs.sock
chown-socket = %(uid):www-data
chmod-socket = 660
chdir = /var/www/webapps/lhhs/
virtualenv = /var/www/webapps/lhhs/env
binary-path = /var/www/webapps/lhhs/env/bin/uwsgi
modue = lhhs.wsgi:application
wsgi-file = lhhs/wsgi.py
env = DJANGO_SETTINGS_MODULE=lhhs.settings.dev
module = django.core.handlers.wsgi:WSGIHandler()
stats = 127.0.0.1:9191
vacuum = true
processes = 1
threads = 1
plugins = python3,logfile
logger = file:/var/www/webapps/lhhs/log/uwsgi.log
发布评论

评论列表(0)

  1. 暂无评论