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

-- 
"Mediocrity: It takes a lot less time, and most people don't realise 
until it's too late." (despair.com)

Luke Plant || L.Plant.98 (at) cantab.net || http://lukeplant.me.uk/

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to