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:
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
2 matches
Mail list logo