I made a management command that populates one of my models from a csv file.
I need to do this update quite frequently and the csv files have tens of thousands of lines.
Sometimes it can take over 10 minutes to finish populating.
I want to add a feature that lets me upload the csv file through the website directly and after the file is uploaded, django should run that command, or at least the logic from it, and populate the db.
How would I go about this? I want to be able to leave the page after I upload the file and receive an e-mail when the task is finished.