Re: Syntax for cache page in urls

2010-07-16 Thread Michel Thadeu Sabchuk
Hi guys! I've found the sollution. If I use to following code, it works: """ from django.views.generic.simple import direct_to_template urlpatterns = patterns('', (r'^$', cache_page(direct_to_template, 60*15), {'template':'home.html'}), ) """ Note that I specify the cache timeout in the cac

Syntax for cache page in urls

2010-07-16 Thread Michel Thadeu Sabchuk
Hi guys, I'm migrating a project from django1.1 to django1.2.1 and I have problems with cache. I used to write on the urls: """ from django.views.generic.simple import direct_to_template urlpatterns = patterns('', (r'^$', cache_page(direct_to_template), {'template':'home.html'}), ) """ Thi