Skip to content

Instantly share code, notes, and snippets.

@linuxkathirvel
Last active May 6, 2021 16:33
Show Gist options
  • Select an option

  • Save linuxkathirvel/f9441569d079321835e12afec271e83f to your computer and use it in GitHub Desktop.

Select an option

Save linuxkathirvel/f9441569d079321835e12afec271e83f to your computer and use it in GitHub Desktop.

Revisions

  1. linuxkathirvel revised this gist May 6, 2021. 1 changed file with 6 additions and 0 deletions.
    6 changes: 6 additions & 0 deletions django-postgresql-debian-setup.md
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,11 @@
    # Django + PostgreSQL + Debian Setup
    ## Install needed packages
    ```code bash
    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
    ```code bash
    sudo -iu postgres
    psql -U django_user django_project_db < django_db_backup.psql
    ```
  2. linuxkathirvel revised this gist May 6, 2021. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion django-postgresql-debian-setup.md
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,5 @@
    # Django + PostgreSQL + Debian Setup
    ```code bash
    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 -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
    ```
  3. linuxkathirvel revised this gist May 6, 2021. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion django-postgresql-debian-setup.md
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,5 @@
    # Django + PostgreSQL + Debian Setup
    ```code bash
    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 -y
    sudo apt install python3-pip python3-dev libpq-dev postgresql postgresql-contrib nginx curl virtualenv redis-server sudo vim vim-nox htop tmux -y
    ```
  4. linuxkathirvel revised this gist May 6, 2021. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion django-postgresql-debian-setup.md
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,5 @@
    # Django + PostgreSQL + Debian Setup
    ```code bash
    sudo apt update -y
    sudo apt install python3-pip python3-dev libpq-dev postgresql postgresql-contrib nginx curl -y
    sudo apt install python3-pip python3-dev libpq-dev postgresql postgresql-contrib nginx curl virtualenv redis-server sudo vim vim-nox htop -y
    ```
  5. linuxkathirvel created this gist May 5, 2021.
    5 changes: 5 additions & 0 deletions django-postgresql-debian-setup.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    # Django + PostgreSQL + Debian Setup
    ```code bash
    sudo apt update -y
    sudo apt install python3-pip python3-dev libpq-dev postgresql postgresql-contrib nginx curl -y
    ```