【发布时间】:2020-04-11 15:03:34
【问题描述】:
我有一个问题需要你的帮助~
我有一个在 vps(centos7,django2.2) 中运行的 django 程序,它与 Nginx+Uwsgi 配合得很好。
我编辑了三个文件(比如a.py b.py c.py),通过winscp.exe上传到vps,现在程序不能运行了。
我在 uwsgi.log 文件中找到了这些日志。
File "/mnt/datasource/<privacy_hidden>/venv/lib/python3.6/site-packages/django/db/backends/sqlite3/base.py", line 68, in <module>
check_sqlite_version()
File "/mnt/datasource/<privacy_hidden>/venv/lib/python3.6/site-packages/django/db/backends/sqlite3/base.py", line 65, in check_sqlite_version
raise ImproperlyConfigured('SQLite 3.8.3 or later is required (found %s).' % Database.sqlite_version)
django.core.exceptions.ImproperlyConfigured: SQLite 3.8.3 or later is required (found 3.7.17).
unable to load app 0 (mountpoint='') (callable not found or import error)
我在centos7 shell中写了“sqlite3 --version”,它显示版本= 3.30.1
我写了“python >>> import sqlite3 >>>print sqlite3.sqlite_version”它显示版本=3.30.1
我写了“python manage.py runserver --noreload 0.0.0.0:80”,效果很好,没有信息显示sqlite错误。
但是程序不能在uwsgi中运行,我认为uwsgi.ini是正确的。
我能做什么? 谢谢!
【问题讨论】:
标签: python django sqlite uwsgi