datamade / openness-project-nmid

Money Trail NM - New Mexico In Depth's Campaign Finance Explorer
https://moneytrailnm.com
3 stars 1 forks source link

Upgrade Python from 3.6=>3.12 and Django from 1.11=>3.2.5 #200

Closed fgregg closed 4 months ago

fgregg commented 4 months ago

This PR updates the Python and Django version, and most other dependencies.

We only go to 3.2.5 for Django instead of 5.0.4 because the django-bootstrap-pagination requirement will not work with Django > 3.2.

It would be pretty simple to fork the bootstrap pagination project and make the changes necessary to get it working with new Django, but we might want to also update the Boostrap version, so I'll leave all that to another day.

Nearly all the templates had to be touched, but the only substantive change in them is changing {% load staticfiles %} to {% load static %}. The rest of it is just formatting changes from djhtml.