Re: chrome v13 + double-running middleware (django 1.3)

2011-08-22 Thread Yeled Nova
Instead of printing out Watchdog, you can "print request.path" to see which two requests are triggering the middleware. When you know which additional request is causing the problem, you can use a decorator to filter it. Here is what I do: --- In middleware.py:

Re: chrome v13 + double-running middleware (django 1.3)

2011-08-22 Thread Daniel Roseman
On Monday, 22 August 2011 18:17:09 UTC+1, mcrk wrote: > > Hi everyone! > > I've created a simple middleware for mobile detection and when testing > values in dev console I came up with some pretty strange behavior. > Let's say, I have this simple middleware class: > > class MobileRedirect(objec