排坑:宝塔2.0-- Python3.8.3 --django==2.2.*
---------------------提示uWSGI 在root下运行解决办法:
*** WARNING: you are running uWSGI as root !!! (use the --uid flag) ***
修改uwsgi.ini ---WARNING消失
uid=www
gid=www
----------------------主页面可访问--500服务器内部错误(Internal server error):
日志:提示1:
django.core.exceptions.ImproperlyConfigured: SQLite 3.8.3 or later is required (found 3.7.17).
raise ImproperlyConfigured('SQLite 3.8.3 or later is required (found %s).' % Database.sqlite_version
check_sqlite_version() File "/www/jddocLinux/jdDoc8/md5xxxxxxxxxxxxxxxxxxxx/lib/python3.8/site-packages/django/db/backends/sqlite3/base.py", line 63, in check_sqlite_version
vim Line 63修改为:if Database.sqlite_version_info < (3, 6, 3): 服务器内部错误问题解决但有子目录 404 with 语句不执行问题
出现sqlite3 --version , 3.35 , 然后虚拟换机 python 中 import sliqte3 然后 sqlite3.version 也是 3.35 , 但 uw