tags:

views:

3798

answers:

3

I can't find any documentation on this or any forum discussions. Has anybody at least gone through their testapp? I feel like there are errors in their code (deprecated from the most recent version of pymongo), but I've just started with pymongo and am not entirely sure. Are there any good resources on django-mongodb or is this project kinda dead?

More generally, has anybody used MongoDB with Django?

+2  A: 

AFAIK django-mongodb isn't being actively developed. There are definitely people using MongoDB with Django, however. Might want to look at this project for an example of using PyMongo with Django.

mdirolf
A: 

The MongoDB folks have put out a great list of projects that might be useful.

PyMongo ORM Layers

Scott J Roberts
Current correct URL is http://api.mongodb.org/python/1.7%2B/index.html
Peter Rowell
+15  A: 

I'm working on MongoEngine, an ORM-like wrapper for PyMongo, (documentation here) and better Django integration is one of our future goals. At the moment we provide a Django auth backend that runs on MongoEngine - sessions and settings.py database configuration will hopefully follow in the near future. For more info see the documentation page on using MongoEngine with Django.

More generally, has anybody used MongoDB with Django?

I'm working on a project that demonstrates how to use Django with MongoEngine; it's up on GitHub if you want to have a play with it or take a look at the code. MongoEngine plays fairly nicely with Django - just don't specify the usual database settings in settings.py, instead call mongoengine.connect() somewhere in settings.py and you can use MongoEngine as usual in Django.

HarryM
Awesome. Keep up the good work
Infinity
@HarryM: I'm just started with MongoDB, and must say that MongoEngine is awesome! Keep it up!
RadiantHex