Django backend for who owns mass application.
Written in Python 3.10.2
Install pyenv-virtualenv
Create the virtual Python environment:
pyenv virtualenv 3.10.2 mass-evictions
Trigger it automatically upon cd-ing into current dir
echo "mass-evictions" >> .python-version
Install Python dependencies:
pip install requirements.txt -r
To run app:
./manage.py runserver
cp config/settings/settings_local.example.py config/settings/settings_local.py
Run sql file update_db.sql
either by running file or copy pasting each line and making sure the tables have been updated with an id
column
psql \c eviction_db
\dt
\x on;
select * from plaintiffs limit 5;
Migrate DB
./manage.py migrate
to run Django shell (and make it nice)
./manage.py shell_plus
pip install pygraphviz
python manage.py graph_models -a -g -o schema.png