Django and PostgreSQL


#1

I am wanting to do a WebApp and utilize it with PostgreSQL in development instead of using SQLite. I may have missed it in the book but are there any tutorials you have found for doing this?


#2

No, PostgreSQL isn’t covered in the book — I’m going to write a post about it for the Hello Web App blog at some point but unfortunately that isn’t up yet. Seems like it should be simple though, this tutorial seems to cover the basics! http://killtheyak.com/use-postgresql-with-django-flask/

Let me know if that doesn’t help. :)


#3

To add a bit to what @limedaring said:

If you already have PostgreSQL setup, then changing Django to use it is really easy—you’ll just need to change the DATABASES configuration in your settings file: https://docs.djangoproject.com/en/1.8/ref/settings/#databases