I have been developing lately with A django/HTMX stack[0]. It covers a lot of the positives of JS SPA, without the headache. Also, I get to use the Django superpowers.

https://htmx-django.com

Surprised htmx isn't mentioned more in the comments.

I'm using it with Janet for a side project, really liking it so far. Writing server-side html with a hiccup-like library is very nice! :)

(Clojure Hiccup library, similar libraries exist for other lisp-like languages: https://github.com/weavejester/hiccup)