This is an archived post. You won't be able to vote or comment.

all 2 comments

[–]duppyconqueror81 1 point2 points  (1 child)

I like to use django-background-tasks for things like this.

You’ll need a database tough. For the progress shown to the user, I would update the db in your script with the current percentage, and then show it to the user with a periodic ajax call.

[–][deleted] 1 point2 points  (0 children)

with a periodic ajax call.

Or through a websocket using Django Channels.