I want to create a home view that is the same as a home view but does not cache it.
urlpatterns += patterns('django.contrib.flatpages.views',
url(r'^$', 'flatpage', {'url': '/'}, name='home'),
)
Something like this
urlpatterns += patterns('django.contrib.flatpages.views',
url(r'^$', 'flatpage', {'url': '/'}, name='home'),
url(r'^new/$', never_cache('flatpage', {'url': '/'}), name='nocache_home'),
)
Clearly this won't work but does anyone know the trick which would enable this?