4

I'm about to start a project with Django and MongoDB. From what I can tell, there are two ways to use Django and MongoDB together. One way is the fork of Django called Django-nonrel which supports NoSQL databases, and the other is to just use the standard version of Django with PyMongo (and optionally Ming for models, etc.).

I have used the second option lightly in the past, but this is going to be a large project. I honestly don't know too much about Django-nonrel, but it seems like using the primary Django project would be better from a stability standpoint, as well as from a new features standpoint.

Is there an advantage to using Django-nonrel over just base Django with PyMongo thrown in?

1 Answer 1

2

This is a biased opinion, but I would use Django with PyMongo. The main reasons are the following. First, what you stated about using the standard Django version versus a fork. And secondly, the fact that PyMongo is the official Python driver for MongoDB. It is written and maintained by MongoDB. It ensures that any new feature in MongoDB will be available in PyMongo.

Sign up to request clarification or add additional context in comments.

4 Comments

My only other question really becomes how to use plugins that normally create tables. For example, can Auth be configured to work with PyMongo somehow?
Luke, By 'Auth', do you refer to the Django authentication plugin, or to MongoDB's way of authenticating a user. If is the latter, you can find some examples at: api.mongodb.org/python/current/examples/authentication.html If you are referring to the Django library, I was hoping that someone else could help you, because I am not familiar enough with that library. You may want to open a separate question for that. Questions with no answers in Stack Overflow get more visibility.
Thanks for the tip! I wasn't aware MongoDB had its own authentication framework. I've since decided to just use SQL for the backend though, MongoDB isn't quite as amazing as it is made out to be.
By the way I really thought I marked this as the correct answer awhile ago, sorry!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.