Integrates live.js into your django project.
There is already a project named django-livejs, so I added "2" to the name to avoid conflict. (Additionally I think my version is better than that one :P )
- Either run
python setup.py installor use
pipto install the package.
- Edit your
MIDDLEWARE_CLASSES. Also add
INSTALLED_APPSif you want to use the shipped live.js.
Just visit any page with
live=1 in query string to enable the module. When enabled, live.js will be included in every HTML page. The module will also make all files uncacheable by browser, so that any updates to static files will have effect immediately. (Without that Firefox may cache static files for 1 minute)
Disabling is also easy, visit any page with
live=0 in query string and you are done.
settings.DEBUG is not
True, the module will be completely disabled since it is not really useful in production environment.
If you want to use a custom version of live.js, set this to URL of the script.