L
L
larinsergey1012019-02-13 14:10:58
Django
larinsergey101, 2019-02-13 14:10:58

How to create a Celery task using django-rest?

Hi, I have little experience with django so far. I'm trying now to understand the main technologies used in python projects. tell me, please, what should be the general logic if you need to create a celery task through rest.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ilyas, 2019-02-13
@id2669099

This task will be no different from the one if you need to set a task without using rest.
Here it is necessary to understand the context of the problem and then make a decision from where to call the statement of the problem.
Alternatively, you can directly from the view, or you can use the "save" method of the serializer.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question