htmx + Django instead of a SPA: when it's the right call
A concrete comparison of htmx partial updates versus a full Angular SPA for a CRUD-heavy internal tool, and where each one actually wins.
A concrete comparison of htmx partial updates versus a full Angular SPA for a CRUD-heavy internal tool, and where each one actually wins.
A concrete migration story: splitting a Django-API + Next.js two-pipeline setup back into one htmx-powered Django app, and the deploy pain, state-sync bugs and duplicated validation that drove it.
Django Middleware is very important, it's executed each time a connection appear in any direction, client to server or server to client, and can be very useful in different situations. If we're interested we can check the official documenta...
Sometimes ChoiceField can be useful in our models, one typical example for it is when you have for example different User profile types. If you need to add this kind of limited choices for an UserType ('admin', 'blog_manager', 'translator',...