Django with NoSQL database

白昼怎懂夜的黑 提交于 2020-01-11 09:03:09

问题


I am working with an Django application which uses Django 1.8 version.

Most of the data we deal with is JSON formatted ones. We are trying to implement any NoSQL database.

But I see that MONGODB is not compatible for version 1.8 and over and Is there any NoSQL database that can be efficiently mapped to Django 1.8 or over ??

Thanks in advance.


回答1:


NoSQL databases are not officially supported by Django itself. There are, however, a number of side project and forks which allow NoSQL functionality in Django, like Django non-rel.

You can also take a look on the wiki page which discusses some alternatives.

This is quoted from the django official documentation




回答2:


Here is an interesting repo for allowing using MongoDB as your django backend. It works by compiling SQL commands into MongoDB document queries.

Most of the basic stuff like django admin, django session etc all work.

https://github.com/nesdis/djongo



来源:https://stackoverflow.com/questions/41406219/django-with-nosql-database

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!