- Setup database:
sudo -u postgres psql
create user user_name with password 'password';
create database link_db owner user_name;
grant all privileges on database link_db to user_name;
\q
- change user_name, password and db_name in DATABASES in settings.py
- Create virtual environment
- Activate virtual environment
- Install all requirements
pip install -r requirements.txt
- Run migrations
python manage.py migrate
- Create superuser
python manage.py createsuperuser
- Run server
python manage.py runserver