Skip to content

Instantly share code, notes, and snippets.

@zodman
Created June 25, 2014 16:19
Show Gist options
  • Save zodman/337d0e0966e43a72cb54 to your computer and use it in GitHub Desktop.
Save zodman/337d0e0966e43a72cb54 to your computer and use it in GitHub Desktop.
livereload for django projects
from livereload import Server
import formic
server = Server()
for f in formic.FileSet(
include=["**.py","**.html","**.css","**.js"],
exclude=[
'**sqlite**',
'.**.*sw*',
'**.pyc',
'**~',
]):
print f
server.watch(f)
server.serve(port=35729)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment