form = PrintForm(request.POST) if form.is_valid(): if not request.htmx: # Do stuff else: form = PrintForm() if request.htmx: return render(request, "create/_print_form.html", {"form": form}) else: return render(request, "create/print.html", {"form": form})
FastAPI and others HTMX templating and form handling Doesn't have to be first-party, already some plugins Separately-useable ORM? I literally first heard this idea at DjangoCon in 2008