retrieving data from Cache

15 views
Skip to first unread message

himabindu

unread,
Oct 5, 2011, 4:51:11 AM10/5/11
to Django users
HI,

I have an issue in django framework. I was trying to develop a
progress bar for my application, where the progress depends on files
retrieved from the cache. But iam not able to retrieve the files from
the cache.


CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.db',
'LOCATION': 'vmware/Downloads/Django-1.3/django/core/cache/
backends/',
}
}



and i gave the statement as

if progress_id:
from django.utils import simplejson
cache_key = "%s_%s" % (request.META['CACHES'], progress_id)
when a submit button is clicked the request is actually posted but the
progress is not shown.



Can anyone please help me out in solving the problem

Daniel Roseman

unread,
Oct 5, 2011, 8:57:11 AM10/5/11
to django...@googlegroups.com
On Wednesday, 5 October 2011 09:51:11 UTC+1, himabindu wrote:
HI,

    I have an issue in django framework. I was trying to develop a
progress bar for my application, where the progress depends on files
retrieved from the cache. But iam not able to retrieve the files from
the cache.


 CACHES = {
    'default': {
        'BACKEND': 'django.core.cache.backends.db',
        'LOCATION': 'vmware/Downloads/Django-1.3/django/core/cache/
backends/',
               }
            }
 
This is obviously nonsense. Look again at the documentation for the db cache:
and follow that.
--
DR.
Reply all
Reply to author
Forward
0 new messages