On Friday 12 May 2006 11:32, Luke Plant wrote: > On Thursday 11 May 2006 10:13, PythonistL wrote: > > Is there a way how to prevent a page from being cached? > > from django.views.decorators.cache import never_cache > > @never_cache > def myview(request): > # etc > > I'm not sure if it's documented anywhere, I think it is. > > Luke
Hey Luke, I looked for the string 'never_cache' in my copy of the 'Sargasso'(pre-agic-removal) branch but didn't find anything. Do you know if this feature is available there? Perhaps under a different name? Thanks, Eric. >>> from django.views.decorators.cache import never_cache Traceback (most recent call last): File "<stdin>", line 1, in ? ImportError: cannot import name never_cache --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~----------~----~----~----~------~----~------~--~---