开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜