【发布时间】:2021-05-17 20:21:59
【问题描述】:
我正在 Amazon Elastic Beanstalk 上运行一个 Django 项目。我遇到了 500 错误。我已经追踪到我的错误与 SQLite 相关
[Sun Feb 14 20:02:02.485066 2021] [:error] [pid 419] check_sqlite_version()
[Sun Feb 14 20:02:02.485072 2021] [:error] [pid 419] File "/opt/python/run/venv/local/lib/python3.6/site-packages/django/db/backends/
sqlite3/base.py", line 67, in check_sqlite_version
[Sun Feb 14 20:02:02.485075 2021] [:error] [pid 419] raise ImproperlyConfigured('SQLite 3.8.3 or later is required (found %s).' % D
atabase.sqlite_version)
[Sun Feb 14 20:02:02.485096 2021] [:error] [pid 419] django.core.exceptions.ImproperlyConfigured: SQLite 3.8.3 or later is required (fo
und 3.7.17).
我似乎没有任何能力在 EB 上升级 SQLLite。我的 SSH 访问是只读的。我应该如何让 Django 在这种环境中工作?
Requirements.txt:
asgiref==3.3.1
Django==3.1.6
Pillow==8.1.0
pytz==2021.1
sqlparse==0.4.1
【问题讨论】:
-
The latest compatible version is Django 2.1 with the Elastic Beanstalk Python 3.6。 SQLite 是 Python 中包含的数据库引擎。数据库与您的项目文件一起部署。
标签: python django amazon-web-services amazon-elastic-beanstalk