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
Post a Comment