Add a never cache decorator to the view that does the deleting (and perhaps
to the view that lists the items). Then you shouldn't have any problems and
you can still use the cache middleware.
See https://docs.djangoproject.com/en/1.6/topics/cache/
Regards,
Andréas
2014-12-19 5:07 GMT+01:00 T Kw
I have a list view where I can add or delete objects. I found that if the
cache middleware is included:
'django.middleware.cache.UpdateCacheMiddleware',
'django.middleware.cache.FetchFromCacheMiddleware'
The page doesn't operate properly. Basically deleted objects don't always
disappear.
Added
Hi all , I am writing that shall be a facebook canvas app as well as a
standard app at the same time. Now for the time being I am just
working with removing csrf from my middleware classes but does anyone
know about a project that handles this more effectively such that i
can use csrf middleware fo
Turns out the problem was my own fault. My process_response() wasn't
handling exceptions properly. I changed it from this:
def process_response(self, request, response):
self.activity.set_request_time()
return response
to this:
def process_response(self, request, respons
I created a custom middleware for logging requests based on this blog
post: http://whijo.net/blog/brad/2007/07/19/statistics-logging-django.html
It's mostly working fine except for one thing. It causes problems when
a URL without a trailing / is requested. In that case it gives me the
following e
I created a custom middleware for logging requests based on this blog
post: http://whijo.net/blog/brad/2007/07/19/statistics-logging-django.html
It's mostly working fine except for one thing. It causes problems when
a URL without a trailing / is requested. In that case it gives me the
following e
6 matches
Mail list logo