Wednesday, October 5, 2011

retrieving data from Cache

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

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment