In this post, we will go through setting up MongoDB 2.6 together with Django 1.6. By default, Django doesn’t contain support for MongoDB. It isn’t difficult, however, to introduce support for the NoSQL database following the steps in this tutorial.
I recently started using MongoDB and I was struggling setting up the equivalent of a root user and other users in traditional SQL databases. MongoDB comes with authentication turned off out of the box, so in order to use the password challenge authentication, we have to create the root user followed by enabling the authentication. In this tutorial, we will cover that as well as installing MongoDB on Ubuntu.