Answer the question
In order to leave comments, you need to log in
Sorting table fields in django project?
Good afternoon. There is TK. Help to orient.
I did a Django project, created the necessary fields for the table in the model.
1) The table should contain 4 columns:
name, date, and 2 columns of numbers.
2) The table must be sorted by all fields except the date.
Filtering should be in the form of two drop-down lists and a text field:
a) Selecting a column by which to filter
b) Selecting a condition (equal to, contains, greater than, less than)
c) A field for entering a value for filtering
3) The table must contain pagination
The entire table should work without reloading the page.
Answer the question
In order to leave comments, you need to log in
2. https://pypi.org/project/django-filter/
But this is without ajax
The whole table should work without reloading the page. What is the best way to do this with ajax? Or is React/Vue better?I think both there and there, the same methods are used - sending a request to the server and receiving a response
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question