Answer the question
In order to leave comments, you need to log in
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
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 questionAsk a Question
731 491 924 answers to any question