Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Django and NoSQL, any ready-to-use library? [closed]

So far Django has good integration with several RDBMS. NoSQL, schema-less and document-oriented DBMS are picking up. What's the status of integration those on-trend and fashionable DBMSes with Django? Are there any production-ready or at least ready-to-use libraries for Django?

So far I have these at hand:

  • http://github.com/lethain/comfy-django-example
  • http://nosql.mypopescu.com/post/276069660/nosql-libraries#mongodb-python
like image 887
Viet Avatar asked Feb 19 '10 02:02

Viet


People also ask

Can Django be used with NoSQL?

NoSQL databases are not officially supported by Django itself. There are, however, a number of side projects and forks which allow NoSQL functionality in Django.

Is it good to use MongoDB with Django?

Django, the most popular Python web framework, is an ideal tool to build secure and easy-to-maintain applications using MongoDB. Using MongoDB with Django is advantageous because: Every second, more and more unstructured data is generated from various sources like chats, real-time streams, feeds, and surveys.

How do I connect to a NoSQL database in Python?

In order to connect to MongoDB, python uses a library known as pymongo. You can add this library to your python environment, using the below command from the Anaconda environment. This library enables python to connect to MOngoDB using a db client. Once connected we select the db name to be used for various operations.

Is MongoDB a NoSQL?

NoSQL databases come in a variety of types including document databases, key-values databases, wide-column stores, and graph databases. MongoDB is the world's most popular NoSQL database.


2 Answers

Pre 1.0, django ORM underwent a major queryset re-factor. One of the reasons for this was "This re-factor enables us to support non relational backends".

The official support I think is definitely on the cards; but I think there were more pressing matters for 1.1 and 1.2(now in beta).

However, there are of course several independent efforts to use non relational databases with django, including, but not limited to the following:

  • Django-nonrel by Waldemar, who made django work on the appengine using the appengine patch.
  • Using django with mongo db, by Kevin Fricovsky: http://bitbucket.org/gumptioncom/django-non-relational/
  • Using django with couch db, an old post, by Eric: http://www.eflorenzano.com/blog/post/using-couchdb-django/
like image 60
lprsd Avatar answered Oct 05 '22 17:10

lprsd


Neo4j- the Java graph database (on the other end of the NoSQL spectrum)- also has initial support.

EDIT:

I've spent quite a while fleshing this support out and moving to a remote protocol. You can see the results on GitHub.

like image 38
Matt Luongo Avatar answered Oct 05 '22 16:10

Matt Luongo