How to disable Middleware and Request Context in some views
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 aja开发者_StackOverflow中文版x 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 ?
This is not likely to be feasible. Best to have a second Django project or WSGI app to handle these requests.
精彩评论