How To Use PostgreSQL with your Django Application

In this guide, you will install and configure PostgreSQL (often referred to as Postgres) to use with your Django applications. You will install the necessary software, create database credentials for our application, and then start and configure a new Django project to use this backend.

CentOS

7

How To Use PostgreSQL with your Django Application on CentOS 7

Learn How To Use PostgreSQL with your Django Application on CentOS 7

Debian

8

How To Use Postgresql with your Django Application on Debian 8

Learn How To Use Postgresql with your Django Application on Debian 8

Ubuntu

22.04

How To Use PostgreSQL with your Django Application on Ubuntu 22.04

Learn How To Use PostgreSQL with your Django Application on Ubuntu 22.04
20.04

How To Use PostgreSQL with your Django Application on Ubuntu 20.04

Learn How To Use PostgreSQL with your Django Application on Ubuntu 20.04
16.04

How To Use PostgreSQL with your Django Application on Ubuntu 16.04

Learn How To Use PostgreSQL with your Django Application on Ubuntu 16.04
14.04

How To Use PostgreSQL with your Django Application on Ubuntu 14.04

Learn How To Use PostgreSQL with your Django Application on Ubuntu 14.04

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.