How to edit data with django-tables2 in frontend?

I have Django and I want to create a CRM system that allows users to view, add, delete, and edit data in the frontend. I found a nice module called django-tables2 that allows me to display pretty tables of my data:

django-tables2 turns data into HTML tables. Features:

Pagination Display Extended Class Markup Support for Query Set and Data List Topics

So my question is the best way to do the editing in the frontend using these tables? For example: I want records from a table to be selected using checkboxes and then I want them to be deleteable and editable, like the built-in django admin. In other words: I need some kind of tool like django-admin, but in my frontend (in my template). So do I need to write js to handle user clicks in table records and point those actions to my urls / views or is there a better way? I hope this question helps not only mine, but anyone planning to become a frontend-ninja, THANKS!

+3


source to share


1 answer


I think you should take a look at Swampdragon and Angular. They can pair well with django-tables2. You can always just write a table using Angular.



0


source







All Articles