echo layout python3 >> .envrc
direnv allow
pip install -r requirements.txt
cd movieratings
mkdir /ratingsdb/fixtures
mkdir /ratingsdb/data
python manage.py migrate
python manage.py shell
from ratings import *
models.load_initial_data()
exit()
python manage.py loaddata movies
python manage.py loaddata raters
python manage.py loaddata ratings
python manage.py runserver
To view the top 20 movies by average rating, open 127.0.0.1:8000/db/movies/top
in your browser
To view a specific movie, open 127.0.0.1:8000/db/movie/#
replacing '#' with the ID of the desired movie
To view a specific rater, open 127.0.0.1:8000/db/rater/#
replacing '#' with the ID of the desired rater