Django with NoSQL database

2019-02-22 09:17发布

问题:

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