Skip to content

Instantly share code, notes, and snippets.

@linuxkathirvel
Last active May 6, 2021 16:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save linuxkathirvel/f9441569d079321835e12afec271e83f to your computer and use it in GitHub Desktop.
Save linuxkathirvel/f9441569d079321835e12afec271e83f to your computer and use it in GitHub Desktop.
Django + PostgreSQL + Debian Setup

Django + PostgreSQL + Debian Setup

Install needed packages

sudo apt update -y
sudo apt install python3-pip python3-dev libpq-dev postgresql postgresql-contrib nginx curl virtualenv redis-server sudo vim vim-nox htop tmux git -y

Restore PostgreSQL DB

sudo -iu postgres
psql -U django_user django_project_db < django_db_backup.psql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment