N
N
NyxDeveloper2021-02-11 15:45:58
Django
NyxDeveloper, 2021-02-11 15:45:58

How to optimize the output of a django template with a form where there are many option elements in the select fields?

There is a problem related to the very slow loading of the page with the table. The fact is that above the table there is a form by which you can search for information inside this table, and since most of the fields in the form are modelchoice / multiplemodelchoice fields that have a rather long list of choices, it takes 8-10 on average to load one field seconds, and there are 13 fields. Tell me some tricky way to get around this long load and leave fields with select types. Thank you!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dr. Bacon, 2021-02-11
@bacon

for example https://django-select2.readthedocs.io/en/latest/in...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question