How to disable Middleware and Request Context in some views.

Posted by xRobot on Stack Overflow See other posts from Stack Overflow or by xRobot
Published on 2010-06-05T06:28:12Z Indexed on 2010/06/05 6:32 UTC
Read the original article Hit count: 199

I am creating a chat like facebook chat... so in views.py of my Chat Application, I need to retrieve only the last messages every 3-4 seconds with ajax poll ( the latency is not a problem for me ).

If I can disable some Middlewares and some Request Context in this view, the response will be faster... no ?

My question is:

Is there a way to disable some Middlewares and some Request Context in some views ?

© Stack Overflow or respective owner

Related posts about django

Related posts about django-models