[Python] I am trying to run uwsg-emporer vassal and it can't find my python

Discussão em 'Python' iniciado por Stack, Março 7, 2025.

  1. Stack

    Stack Membro Participativo

    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

    Continue reading...

Compartilhe esta Página