0

I have a custom form in a admin.ModelAdmin where I use to upload some CSV data with a file upload.

Sometimes, processing this CSV file takes longer than the HTTP Worker timeouts will allow, forcing me to split up the CSV file into smaller chunks that will not trip the worker timeouts.

I need to find a way to avoid splitting up the CSV into separate chunks to upload one at a time.

I was researching how I might resolve this issue, and I am having a hard time finding any resources I might be able to learn from, like a tutorial.

What are some common patterns and best practices when I need to do something long-running (>30s) in Django Admin? I am looking for pointers, guides, and tutorials.

Thank you!

keehun
  • 41
  • 4
  • Can you add the form and upload handling code to your question? You may have to look into some asynchronous task queue solution like Celery. – Iain Shelvington Nov 29 '22 at 04:42

0 Answers0