Skip to content

Instantly share code, notes, and snippets.

I have decided to explain the instructions from scratch:
1. Install Postgres on your computer.
- First install `sudo apt-get install libpq-dev python-dev` which are Postgres dependencies to work with Django perfectly.
- Then, enter `sudo apt-get install postgresql postgresql-contrib` command to install Postgres.
2. Access to Postgres using `sudo su - postgres` command.
3. Create a new database. `createdb <dbname>`