--- no python application found, check your startup logs for errors ---
--- no python application found, check your startup logs for errors ---
--- no python application found, check your startup logs for errors ---
[pid: 22554|app: -1|req: -1/23] 120.82.117.43 () {40 vars in 5008 bytes} [Sun Dec 24 10:59:57 2023] GET / => generated 21 bytes in 0 msecs (HTTP/1.1 500) 2 headers in 83 bytes (0 switches on core 1)
--- no python application found, check your startup logs for errors ---
[pid: 22554|app: -1|req: -1/24] 120.82.117.43 () {38 vars in 4935 bytes} [Sun Dec 24 10:59:57 2023] GET /favicon.ico => generated 21 bytes in 0 msecs (HTTP/1.1 500) 2 headers in 83 bytes (0 switches on core 0)
--- no python application found, check your startup logs for errors ---
[pid: 22554|app: -1|req: -1/25] 120.82.117.43 () {40 vars in 5008 bytes} [Sun Dec 24 11:08:51 2023] GET / => generated 21 bytes in 0 msecs (HTTP/1.1 500) 2 headers in 83 bytes (0 switches on core 1)
--- no python application found, check your startup logs for errors ---
[pid: 22553|app: -1|req: -1/26] 120.82.117.43 () {38 vars in 4935 bytes} [Sun Dec 24 11:08:51 2023] GET /favicon.ico => generated 21 bytes in 0 msecs (HTTP/1.1 500) 2 headers in 83 bytes (0 switches on core 0)
SIGINT/SIGTERM received...killing workers...
gateway "uWSGI http 1" has been buried (pid: 22555)
worker 1 buried after 0 seconds
worker 3 buried after 0 seconds
worker 2 buried after 1 seconds
worker 4 buried after 1 seconds
goodbye to uWSGI.
*** Starting uWSGI 2.0.23 (64bit) on [Sun Dec 24 11:08:57 2023] ***
compiled with version: 4.8.5 20150623 (Red Hat 4.8.5-44) on 24 December 2023 01:56:11
os: Linux-3.10.0-1160.102.1.el7.x86_64 #1 SMP Tue Oct 17 15:42:21 UTC 2023
nodename: iZ7xv8mogva8558vhl5p1lZ
machine: x86_64
clock source: unix
pcre jit disabled
detected number of CPU cores: 2
current working directory: /www/server/panel
writing pidfile to /www/wwwroot/mysite/uwsgi.pid
detected binary path: /www/server/pyporject_evn/mysite_venv/bin/uwsgi
setgid() to 1000
setuid() to 1000
chdir() to /www/wwwroot/mysite
your processes number limit is 6942
your memory page size is 4096 bytes
detected max file descriptor number: 1024
lock engine: pthread robust mutexes
thunder lock: disabled (you can enable it with --thunder-lock)
uWSGI http bound on 0.0.0.0:8997 fd 4
uwsgi socket 0 bound to TCP address 127.0.0.1:40201 (port auto-assigned) fd 3
Python version: 3.7.9 (default, Dec 24 2023, 09:50:36) [GCC 4.8.5 20150623 (Red Hat 4.8.5-44)]
Python main interpreter initialized at 0x29afc00
python threads support enabled
your server socket listen backlog is limited to 100 connections
your mercy for graceful operations on workers is 60 seconds
mapped 703600 bytes (687 KB) for 8 cores
*** Operational MODE: preforking+threaded ***
Traceback (most recent call last):
File "/www/wwwroot/mysite/mysite/wsgi.py", line 12, in <module>
from django.core.wsgi import get_wsgi_application
ModuleNotFoundError: No module named 'django'
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 ***
spawned uWSGI master process (pid: 23631)
spawned uWSGI worker 1 (pid: 23632, cores: 2)
spawned uWSGI worker 2 (pid: 23633, cores: 2)
spawned uWSGI worker 3 (pid: 23634, cores: 2)
spawned uWSGI worker 4 (pid: 23635, cores: 2)
spawned uWSGI http 1 (pid: 23636)
--- no python application found, check your startup logs for errors ---
[pid: 23635|app: -1|req: -1/1] 120.82.117.43 () {40 vars in 5009 bytes} [Sun Dec 24 11:09:01 2023] GET / => generated 21 bytes in 0 msecs (HTTP/1.1 500) 2 headers in 83 bytes (0 switches on core 0)
--- no python application found, check your startup logs for errors ---
[pid: 23632|app: -1|req: -1/2] 120.82.117.43 () {38 vars in 4936 bytes} [Sun Dec 24 11:09:01 2023] GET /favicon.ico => generated 21 bytes in 0 msecs (HTTP/1.1 500) 2 headers in 83 bytes (0 switches on core 0)
--- no python application found, check your startup logs for errors ---
[pid: 23632|app: -1|req: -1/3] 120.82.117.43 () {40 vars in 5009 bytes} [Sun Dec 24 11:09:02 2023] GET / => generated 21 bytes in 0 msecs (HTTP/1.1 500) 2 headers in 83 bytes (0 switches on core 1)
--- no python application found, check your startup logs for errors ---
[pid: 23632|app: -1|req: -1/4] 120.82.117.43 () {38 vars in 4936 bytes} [Sun Dec 24 11:09:02 2023] GET /favicon.ico => generated 21 bytes in 0 msecs (HTTP/1.1 500) 2 headers in 83 bytes (0 switches on core 0)
--- no python application found, check your startup logs for errors ---
[pid: 23632|app: -1|req: -1/5] 120.82.117.43 () {40 vars in 5009 bytes} [Sun Dec 24 11:09:02 2023] GET / => generated 21 bytes in 0 msecs (HTTP/1.1 500) 2 headers in 83 bytes (0 switches on core 1)
--- no python application found, check your startup logs for errors ---
[pid: 23632|app: -1|req: -1/6] 120.82.117.43 () {38 vars in 4936 bytes} [Sun Dec 24 11:09:02 2023] GET /favicon.ico => generated 21 bytes in 0 msecs (HTTP/1.1 500) 2 headers in 83 bytes (0 switches on core 0)
--- no python application found, check your startup logs for errors ---
[pid: 23632|app: -1|req: -1/7] 120.82.117.43 () {40 vars in 5009 bytes} [Sun Dec 24 11:09:02 2023] GET / => generated 21 bytes in 0 msecs (HTTP/1.1 500) 2 headers in 83 bytes (0 switches on core 1)
--- no python application found, check your startup logs for errors ---
[pid: 23632|app: -1|req: -1/8] 120.82.117.43 () {38 vars in 4936 bytes} [Sun Dec 24 11:09:02 2023] GET /favicon.ico => generated 21 bytes in 0 msecs (HTTP/1.1 500) 2 headers in 83 bytes (0 switches on core 0)
解决方法:
在宝塔的python项目,点击网站》模块 输入django 安装