Re: problem with middle - correctly formatted 2

2011-09-28 Thread jenia ivlev
You need to call "TemplateResponse" in your views for "process_template_response" to be called in your middleware. So in you view, instead of doing: return render(request,'some template' , {'context':context}) You do: return TemplateResponse. Thanks. jenia On Sep 28, 6:25 pm, jenia ivlev wrote:

problem with middle - correctly formatted 2

2011-09-28 Thread jenia ivlev
Hello: I have defined a middleware class. and i have added it to the middleware_classes attribute in setting. When a request comes in, the middleware class gets created (the debugger catches the code when the breakpoint is on the class CommonFiilter(): line) Now i expect the function def process