LiveReload with the Django development server
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.
First install the package on your system:
$ pip install django-livereload
Then register the 'livereload' application in your INSTALLED_APPS setting, before the 'django.contrib.staticfiles' application if used.
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'.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size django_livereload-1.7-py2.py3-none-any.whl (6.5 kB)||File type Wheel||Python version 2.7||Upload date||Hashes View|
|Filename, size django-livereload-1.7.tar.gz (4.6 kB)||File type Source||Python version None||Upload date||Hashes View|
Hashes for django_livereload-1.7-py2.py3-none-any.whl