Reputation: 3
I'm writing web application for get data from Database(MySQL) to file.csv using Django Framework.I can get data but It take so much time to get complete successfully.I don't want to wait for get data finish. I want to continue to next activity but background still get data from Database.
My setup : Python 3.6.5, Django 2.1
Thank you for helping me.
Upvotes: 0
Views: 2026
Reputation: 2246
Celery is a python package that will help you perform asynchronous tasks in Django. You can refer to First Steps With Celery for getting started. Also, I have covered a few setup issues and their solution in this post.
Upvotes: 2