I use Django with MySQL and I this error bothers me almost every time I start a new project with a fresh new installation of Django and relevant Python packages. I use virtualenv to isolate my Python environment for each project. The problem that’s causing this error is that the Python MySQL libraries that are installed via aptitude (I am on Ubuntu) are too old and need to be recompiled.
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.