4 ms·
I actually took a stab at this for a now out-of-favor JS framework, Knockout.js. You can see the project here: https://github.com/Miserlou/django-knockout-mode
by Mizza 9y ago
I actually took a stab at this for a now out-of-favor JS framework, Knockout.js.
You can see the project here: https://github.com/Miserlou/django-knockout-modeler https://github.com/Miserlou/django-knockout-modeler
It allows you to take a single Django QuerySet and turn it into a SPA with in-page listing, sorting, filtering with a single Django template tag:
{{ my_query_set|knockout }}
I used in production in a few projects and was very happy. If I were to do this again, I'd re-do it for Vue.js and make the data-syncing bi-directional. But I hope we see more stuff like this.