Requirements
- Python 3.6+
- PostgreSQL 10+
- All packages in requirements.txt
PostgreSQL Setup
sudo apt install python-pip python-dev libpq-dev postgresql-12 postgresql-contrib
sudo su - postgres
psql
CREATE DATABASE your_db_name;
CREATE USER your_user_name WITH PASSWORD 'your_password';
ALTER ROLE your_user_name SET client_encoding TO 'utf8';
ALTER ROLE your_user_name SET default_transaction_isolation TO 'read committed';
ALTER ROLE your_user_name SET timezone TO 'UTC';
GRANT ALL PRIVILEGES ON DATABASE your_db_name TO your_user_name;
\q
exit
Virtualenv Setup
python3 -m venv your_env_name
. your_env_name/bin/activate
pip install -r requirements.txt
Note: Care about where you set your_env_name