Bitbucket is a code hosting site with unlimited public and private repositories. We're also free for small teams!

Close
<!-- -*- markdown -*- -->

# LiveStream 0.0.1

A Django project using gevent and long polling to deliver a live stream of 
arbitrary events.  This is only a prototype and has not been battle-tested in 
any way, shape, or form.  I've included two very simple applications (startstop 
and winlosedraw) to demonstrate how to integrate this app with other apps you 
may have.

## Requirements:
* Django (developed on 1.2)
* gevent

## Installation:
* Copy the livestream folder into your Django project and add it to your 
  INSTALLED_APPS in settings.py.  
* Run syncdb.  
* Add a livestream folder on one of your template paths in settings.py.

## Using:
* Register the models you want to be notified of when they are created (check 
  out startstop.models for an example).  
* For each of the models that you registered, create a template with the name 
  "stream_item_<model name here>.html" in the livestream folder(s) that you 
  created.
* Create your views.  Use the StreamPoll class for asynchronous calls.
* Execute run.py to start the gevent WSGI server.

Recent activity

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.