I currently have a bunch of huge CSV files on my server (one of them is over 3 GB) that I need to parse through and show on a template. Since this looks like JavaScript stuff, I looked into PapaParse
but it seems that I have to pass in a File
object to the parse
function of PapaParse
. The Mozilla link for that File
object says that those kinds of objects are created when a user uploads some file, or from the HTML5 Canvas element. But I don't want that. The file is already on my server, and I just need to read through it and display the contents in a tabular format.
I tried the manual approach of simply parsing through the entire file from Django and maybe passing it to an AJAX
callback in the template but the browser froze, and I had to restart the server.