Notes from building a blog in Django
This is great and showcases Django's talent for basic CRUD apps with handy admin interfaces.<p>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.<p>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.<p>(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].)<p>[1] <a href="https://github.com/meeb/django-distill">https://github.com/meeb/django-distill</a><p>[2] <a href="https://scc.frontseat.org/" rel="nofollow noreferrer">https://scc.frontseat.org/</a> -- source at <a href="https://github.com/front-seat/engage">https://github.com/front-seat/engage</a>