Answer the question
In order to leave comments, you need to log in
How to implement data modification in the database in a background task?
I know it's done with celery but don't know how to use it :(
PS Django 2+
Answer the question
In order to leave comments, you need to log in
Celery allows you to run arbitrary code in another process.
import django
django.setup()
@app.task
def do_something():
pass
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question