Re: Cache middleware problem

2014-12-18 Thread Andreas Kuhne
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

Cache middleware problem

2014-12-18 Thread T Kwn
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

Facebook csrf middleware problem

2011-09-28 Thread Amit Sethi
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

Re: Middleware problem

2008-06-10 Thread Josh
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

Middleware problem

2008-05-28 Thread Josh
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

Middleware problem

2008-05-28 Thread Josh
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