W
W
Wert20002018-03-17 19:05:41
Django
Wert2000, 2018-03-17 19:05:41

Django. Editable grid/table, components or layout from scratch?

Good day to all!
The essence of the question is that it is necessary to display data on the page with the possibility of editing, adding lines. Share your experience - who implemented this solution in what way? Did you use some component or write a template from scratch?
The engine is Django.

Thank you all in advance for your replies.

UPD: the table is simple - displaying records from the database, for example, a telephone directory (number, full name, email).
tasks - when you click on the field, it becomes available for editing, the "save" button appears. Clicking on which saves the record without reloading the page.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
W
Web Dentist, 2018-03-17
@kgb_zor

I used DataTables + DRF Git
example

D
Dmitry Burnaev, 2018-03-17
@DmitryBurn

you can implement a simple API for adding an entity (according to your example, an entry in the phone book), and on the JS side, implement a regular AJAX request to the server. On saksessu add a line to the table and all. Unless, of course, we are talking about a simple table, and there is no desire to embed an additional battery in the project =)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question