- Original Message -
> In my settings.py , I have specified my cache as :
> CACHES = {
> 'default': {
> ..
> }
> }
>
> In my views.py, I have
>
> import requests
> from django.core.cache import cache, get_cache
>
> def aview():
> #check cache
> if not get_ca
In my settings.py , I have specified my cache as :
CACHES = {
'default': {
..
}
}
In my views.py, I have
import requests
from django.core.cache import cache, get_cache
def aview():
#check cache
if not get_cache('default').get('key'):
#make request and save in