django-livejs

Include livejs utility in each request
Download

django-livejs Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Other/Proprietary Li...
  • Publisher Name:
  • Javi Santana
  • Publisher web site:
  • http://wtelecom.es

django-livejs Tags


django-livejs Description

Include livejs utility in each request django-livejs contains a Django middleware that inserts live.js in each response in order to update assets when are updated. Read live.js documentation for more information.quick start- add django_livejs.middleware.LivejsMiddleware to MIDDLEWARE_CLASSES- set LIVEJS = True in your development settingsThis middlware only works when DEBUG is True, reponse is pass thorugh when is Falseavailable settingsLIVEJS = False # enable/disable live updatingLIVEJS_URL = 'http://livejs.com/live.js' # url to live.js fileYour application templates can be updated when you change them if you enable ETAGS in your settings:USE_ETAGS = TrueCommonMiddleware must be in MIDDLEWARE_CLASSES in order to use ETAGS (by default it's enabled)playgroundClone this repository and run example applicationpython manage.py runserverNow point a browser to http://localhost:8000 and start editing media/test.css and templates/test.html Requirements: · Python · Django


django-livejs Related Software