1👍
✅
I would suggest making a python script and a regular cron job to pull the data into a Django model every hour. Then you can access the Django model normally.
0👍
Another option would be to use Django’s inbuilt caching framework with a timeout of one hour. See
https://docs.djangoproject.com/en/1.8/topics/cache/#basic-usage
One request per hour would still result in retrieval of new data, but it would greatly speed up the display of every other request in the hour, and you wouldn’t have to deal with scheduled tasks.
- How to delete an record from Django model
- Django with jquery-fileupload ui throws error with "This field is required."
- Update list of objects with AJAX
- Django ImproperlyConfigured exception when running commands from django-admin, but not manage.py
- Pip install does not fetch the latest version
Source:stackexchange.com