LiveStream /

Filename Size Date modified Message
livestream
media
startstop
templates
winlosedraw
5 B
1.5 KB
1.0 KB
0 B
546 B
594 B
3.5 KB
851 B
<!-- -*- 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.
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.