-
Committer:
Tarmac
-
Author(s):
Raphael Badin
-
Date:
2012-03-14 15:20:46 UTC
-
mfrom:
(236.6.15 maas-longpoll-js)
-
Revision ID:
ed@carob-20120314152046-dkaa0kxxeti2hpor
[r=jtv][bug=][author=rvb] This branch adds the required view/utility to deal with longpoll on the server side. It adds:
- the required configuration options
- a simple view which will act as a proxy to a txlongpoll server. Note that this will be used in dev mode only. In production, apache will do that. Also, in the future, we might want, in dev mode, to setup a tiny and lightweight http server that will act as a frontend to django's dev server and txlongpoll.
- view.get_longpoll_context: a simply utility used to populate a context with the information required to connect longpoll on the js side.
Note that LONGPOLL is disabled on the dev instance (LONGPOLL_URL = None in demo.py) by default because having it on breaks Django's auto reload feature.