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

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -