Answer the question
In order to leave comments, you need to log in
Why can't UWSGI see a Django app?
I do not know how to solve this problem further, uwsgi tells me that my application is not there:
--- no python application found, check your startup logs for errors ---
[pid: 707|app: -1|req: -1/6] 89.235.190.56 () {38 vars in 585 bytes} [Tue Oct 1 12:31:59 2019] GET /favicon.ico => generated 21 bytes in 0 msecs (HTTP/1.1 500) 2 headers in 83 bytes (0 switches on core 0)
[uwsgi]
chdir = /home/kkomissarov/bot/project
# Django wsgi файл
module = main_app.wsgi
# полный путь к виртуальному окружению
home = /home/kkomissarov/bot/venv
# общие настройки
# master
master = true
# максимальное количество процессов
processes = 10
# полный путь к файлу сокета
socket = /home/kkomissarov/bot/project/project.sock
# права доступа к файлу сокета
chmod-socket = 664
# очищать окружение от служебных файлов uwsgi по завершению
vacuum = true
#Рестарт при обновлении файла
touch-reload = /home/kkomissarov/bot/log/reload
#Время жизни процессов
max-worker-lifetime = 600
harakiri = 600
Answer the question
In order to leave comments, you need to log in
I don't use chdir, but specify (although I have XML format)
<wsgi-file>/home/kkomissarov/bot/project/config/wsgi.py</wsgi-file>
<pythonpath>/home/kkomissarov/bot/project</pythonpath>
<pythonpath>/home/kkomissarov/bot/project/config/</pythonpath>
<module>wsgi</module>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question