python - Django - Calculate data in advance of opening a page -


i using beautifulsoup scrape data going shown on webpage. however, data calculated every time page opened, , causes page load awhile before opened. in django, there simple method calculate data before page accessed opens more quickly, , can update data every hour?

i able find this: https://media.readthedocs.org/pdf/django-cron/latest/django-cron.pdf, not sure if there more simple method.

i suggest making python script , regular cron job pull data django model every hour. can access django model normally.


Comments

Popular posts from this blog

javascript - Trigger mouseenter when an animated element touches mouse -

json - Zend error Connection -

java - Using Spring @Transactional with a combination of readOnly and write, when does this entity get committed? -