Notes from building a blog in Django
This is great and showcases Django's talent for basic CRUD apps with handy admin interfaces.One catch: I like to deploy static sites to GitHub Pages. It turns out the Django ecosystem has an answer for that in the form of Django Distill [1]. Distill adds a new management command that generates static content by repeatedly invoking your views.I've used Distill to build quite a few static sites. It's great to be able to deploy to Pages but use Django's admin UI locally. Typically, for these sites, I check in my 'production' SQLite database directly to my git repo.(Combine this pattern with GitHub actions and you can do a lot with a little. For instance, here's a toy I built to summarize upcoming Seattle city council meetings [2].)[1] https://github.com/meeb/django-distill[2] https://scc.frontseat.org/ -- source at https://github.com/front-seat/engage