[英]Django AWS ElasticBeanstalk Deploy- error deterministic=True requires SQLite 3.8.3 or higher
[英]AWS Elastic Beanstalk requires SQLite 3.8.3 or higher for Django Application
我正在尝试在 AWS Elastic Beanstalk 上上传 Django 应用程序。 我使用了以下教程:
但是在 /admin 上尝试登录后,我最终收到以下错误消息
NotSupportedError at /admin/login/
deterministic=True requires SQLite 3.8.3 or higher
Request Method: POST
Request URL: http://django-env50.eba-3ipauf3e.us-west-2.elasticbeanstalk.com/admin/login/?next=/admin/
Django Version: 3.1.7
Exception Type: NotSupportedError
Exception Value:
deterministic=True requires SQLite 3.8.3 or higher
Exception Location: /var/app/venv/staging-LQM1lest/lib/python3.8/site-packages/django/db/backends/sqlite3/base.py, line 215, in get_new_connection
Python Executable: /var/app/venv/staging-LQM1lest/bin/python
Python Version: 3.8.5
Python Path:
['/var/app/current',
'/var/app/venv/staging-LQM1lest/bin',
'/var/app/venv/staging-LQM1lest/bin',
'/usr/lib64/python38.zip',
'/usr/lib64/python3.8',
'/usr/lib64/python3.8/lib-dynload',
'/var/app/venv/staging-LQM1lest/lib64/python3.8/site-packages',
'/var/app/venv/staging-LQM1lest/lib/python3.8/site-packages']
Server time: Mon, 29 Mar 2021 16:23:05 +0000
这是Pipfile:
[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"
[packages]
asgiref = "==3.3.1"
pytz = "==2021.1"
sqlparse = "==0.4.1"
Django = "==3.1.7"
[dev-packages]
[requires]
python_version = "3.8"
谢谢您的帮助。
切换到 Python 3.7 似乎可以解决问题。
[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"
[packages]
asgiref = "==3.3.1"
pytz = "==2021.1"
sqlparse = "==0.4.1"
Django = "==3.1.7"
[dev-packages]
[requires]
python_version = "3.7"
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.