The code behind https://voterbowl.org/
We use:
We spend all our hipster tech tokens for this project to help us build a front-end directly in Django-land. In particular, we use:
So far, I'm liking both. For projects like this one, HTMX is a keeper. htpy
has its advantages and its frictions; I'm reminded of javascript templating land just before JSX got introduced.
(Other hipster tools under consideration included css-scope-inline and surreal for "locality of behavior", none of which turned out to be particularly desirable in practice; django-slippers, django-template-partials, and django-components, all of which attempt to relieve pain points in Django's built-in templates but none of which seem terribly successful at it; and various bits of wisdom from django-htmx-patterns.)
For code cleanliness, we also use:
python -m venv .venv; source .venv/bin/activate
pip install -r requirements.txt
./scripts/dockerpg.sh up
.env.sample
and settings.py
)./scripts/runserver.sh
and visit http://localhost:8000/