I’ve been learning Python through Udacity, Code Academy and Google University. I’m now feeling confident enough to start learning Django. My question is should I learn Django on an SQL database – either SQLite or MySQL; or should I learn Django on a NoSQL database such as Mongo?
I’ve read all about both but there’s a lot I don’t understand. Mongo sounds better/easier but at the same time it sounds better/easier for those that already know Relational Databases very well and are looking for something more agile.
As a beginner, it will probably be easiest to learn Django using
sqlite. You only need to provide a location for the database and to specify sqlite3 as your backend to get it working, which is nice. If you want to usepostgreslater, it’ll be more work but it’s still feasible. See @JonathanVanasco’s note in the comments.If you want to eventually use a NoSQL DB, Django doesn’t support it currently. Here is the list of recognized 3rd party Django backends.
You could use Mongo through a third party fork known as django-nonrel, but this particular implementation doesn’t support ManyToManyFields and has a few other limitations. You can read more about Mongo in django-nonrel at this blog post. There’s some more unofficial documentation on django-nonrel here.