E
E
evgenii-del2020-02-01 18:57:14
Django
evgenii-del, 2020-02-01 18:57:14

How to add a parser to a Django project?

I wrote a movie parser and added it to a Django project. When I go to the .../films/ link, the parser starts collecting data on movies again, although they are already in the database, and because of this, the page loads for a very long time. Please tell me how to improve the app. For example, make the parser run once a day but without my personal intervention, or so that it runs in the background.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Gornostaev, 2020-02-01
@evgenii-del

Move the parser to a management command run by cron or an asynchronous Celery task .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question