问题描述
我尝试使用 djongo
连接到mongodb阅读 djongo的购物页面和此在此处找到相同的问题,但没有答案出色地像这样更改 setting.py
i try connect to mongodb with djongo
after reading githup page of djongo and this find same question here but no answer as wellchange setting.py
like this
DATABASES = {
'default': {
'ENGINE': 'djongo',
'NAME': 'namename',
}
}
运行 python manage.py makemigrate
后,出现此错误:
djongo'不是可用的数据库后端,请尝试使用"django.db.backend.XXX",其中XXX是以下之一:"mysql","oracle","postgresql","sqlite3"
djongo' isn't an available database backend try using "django.db.backend.XXX" where XXX is one of : "mysql" , "oracle" , "postgresql" , "sqlite3"
mongodb版本= 3.4
mongodb version = 3.4
python版本= 3.6.3
python version = 3.6.3
djogo == 1.2.38
djogo == 1.2.38
推荐答案
您应将Django版本降级为2.2.8,然后重新安装项目.
You should downgrade Django version to 2.2.8 and reinstall the project.
这篇关于将mongodb与djongo连接(Django)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!