30.3.2 PostgreSQL

It is a bad idea to use a different database in production than the database used in development. When starting a project, you will want to switch immediately to the database you will be using in production, and to that end, I strongly recommend using PostgreSQL for your relational database (to say nothing of your nonrelational database requirements).

There are many guides to getting started with a PostgreSQL database with Django (including one at https://django-unleashed.com under the Extras section), and so we will not demonstrate the setup here.

Get Django Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.