Skip to main content

browser-sync with the Django development server

Project description

Forked from Django-livereload

Application performing a browser-sync once the development server is ready.

Why this project ?

I recently started using Gulp and browser-sync to automatize some tasks. Everytime an HTML, CSS or JS file changes, a bsync 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 bsync of the current page when editing Python files because the development server provided by Django is not necessary ready as soon as the bsync request is emitted.

That’s why I created this application.

Installation

  • First install the package on your system:

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

Usage

Install browser-sync globally

$ npm install -g `browser-sync`

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-bsync-1.4.2.tar.gz (3.9 kB view details)

Uploaded Source

File details

Details for the file django-bsync-1.4.2.tar.gz.

File metadata

  • Download URL: django-bsync-1.4.2.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for django-bsync-1.4.2.tar.gz
Algorithm Hash digest
SHA256 e6f4ec34fcc16ac1fc3ed985e32c729395d049c029883145a6cc6a4c76dc94cd
MD5 b725b8add7ba7dffd376d815d440fefb
BLAKE2b-256 0c29110c1ad0d982fcfc09f3d54d700f253889ae7a59c3b37ec4e6800b3e7af3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page