skip to navigation
skip to content

Not Logged In

django-livereload 1.3

LiveReload with the Django development server

Application performing a LiveReload with tiny-lr once the development server is ready.

Why this project ?

I recently started using Gulp and LiveReload to automatize some tasks. Everytime an HTML, CSS or JS file changes, a livereload is performed in the browser to reflect those changes, and I was pretty happy with that.

But I found one limitation, I cannot perform a livereload of the current page when editing Python files because the development server provided by Django is not necessary ready as soon as the livereload request is emitted.

That’s why I created this application.

Installation

  • First install the package on your system:

    $ pip install django-livereload
    
  • Then register the 'livereload' application in your INSTALLED_APPS setting, after the 'django.contrib.staticfiles' application if used.

Usage

If the livereload server provided by tiny-lr is launched (via Gulp, Grunt or whatever), the runserver command will do a livereload on your browser whenever the Django development server is ready.

The script

If you want to livereload-js script injected into your pages because you don’t want to deal with a plug-in, simply register this middleware in your project: 'livereload.middleware.LiveReloadScript'.

 
File Type Py Version Uploaded on Size
django-livereload-1.3.tar.gz (md5) Source 2015-06-15 4KB
django_livereload-1.3-py2.py3-none-any.whl (md5) Python Wheel 2.7 2015-06-15 5KB
  • Downloads (All Versions):
  • 66 downloads in the last day
  • 499 downloads in the last week
  • 1950 downloads in the last month