This repo was produced as an answer to this question on stack overflow.
git clone git@github.com:Asday/weasyprint-pagination.git
cd weasyprint-pagination
mkvirtualenv --python=$(which python3.6) weasyprint-pagination
pip install -r requirements.txt
python manage.py runserver 0.0.0.0:8000
Then visit /.
For an HTML preview, check out /?html.