Ask Django how to turn the page when uploading csv and previewing it.

want to be able to do an internal platform for uploading csv files and previewing them. According to different information, we have established about 20 model, and because there are some necessary logic checks, the local csv files are read by called pandas

.

what has been implemented so far is the following:

upload from jQuery in the foreground
upload
after receiving the local address in the background, read it with pandas and give it all back to the foreground json
upload
the backend continues to check the logic, and the foreground presents the table
< H2 > question: < / H2 >

when the foreground is presented, it will be a complete table, which causes the page to react very slowly and sometimes crash. is there a way to easily paginate when feedback to the foreground?

there are several methods that can be thought of at present

  1. the foreground marks the paging link. Every time Django receives the link, it reads the local file with pandas, and then slices it back to the foreground
  2. .
  3. each model creates a temporary table. After the pandas is read, it is directly create into the temporary table, and paged back to the foreground with paginator.
  4. put the table read by pandas into the cache, and return
  5. by slicing the pandas table according to the link.

do you have any suggestions to meet the needs? Thank you

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1ea77e4-1e60.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1ea77e4-1e60.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?