Skip to main content

SwampDragon is a powerful platform making it easy to build real time web applications, combining the power of Django and Tornado

Project description



Build real-time web applications with Django.


* Real-time data
* Self publishing model
* Make use of the wonderful features of Django
* Serializers handling Django models
* Customisable field serializers
* Routers that are easy to understand
* Angular JS support
* Query style data subscriptions
* Easy to implement in existing Django projects

SwampDragon makes use of Djangos wonderful ORM, Tornados excellent websocket support (with fallback. Tested in IE7), and
Redis blazing speed.

## Installation

pip install swampdragon

## Quickstart

See [documentation]( and example projects in this repository.

[Tutorial]( available here.

# Documentation

See [Documentation]( here

# Changelog

## 0.3.5

```python socketserver``` has been removed, use ```python``` both for development and deployment.

Multiple connections are now possible:

('swampdragon.connections.sockjs_connection.DjangoSubscriberConnection', '/data'),
('myproject.connections.CustomConnection', '/myendpoint'),

A lot of changes has been made to the JavaScript libraries to work with multiple connections and be more 'endpoint specific'.

### JavaScript changes

The old ```dataService``` will be removed.

#### AngularJS
With multiple endpoint support, the AngularJS service changes.

```dataService``` is renamed to ```$dragon```

and all calls requires the endpoint. So ```dataService.getList``` becomes ```$```
(where **data** is the name of the endpoint).

Previously $rootScope was used to broadcast when the connection was ready, however with multiple connections
possible this now changes to ```$dragon.[endpoint].onReady```

$ {

The same goes for ```onChannelMessage```.

// Previously
$scope.$on('handleChannelMessage', function(e, channels, message) { ... });

// Now
$, message) { ... });

#### JavaScript settings

Settings needs to be included in the template

<script type="text/javascript" src="http://localhost:9999/settings.js"></script>

(remember to change localhost to your server url / domain name)

Project details

Release history Release notifications

History Node

History Node

History Node


History Node

History Node

History Node

History Node

History Node


History Node

History Node

History Node

History Node


History Node


History Node


History Node

This version
History Node

History Node


History Node

History Node

History Node


History Node


History Node


History Node


History Node


Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
SwampDragon- (76.1 kB) Copy SHA256 hash SHA256 Source None Aug 25, 2014 (118.6 kB) Copy SHA256 hash SHA256 Source None Aug 25, 2014

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page