This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get update | |
sudo apt-get install python3-pip python3-dev libpq-dev postgresql postgresql-contrib nginx | |
sudo -u postgres psql | |
- paste this code in postgres console: | |
CREATE DATABASE django_project; | |
CREATE USER username WITH PASSWORD 'pass1234'; | |
ALTER ROLE username SET client_encoding TO 'utf8'; | |
ALTER ROLE username SET default_transaction_isolation TO 'read committed'; |