Skip to content

yunmanger1/django-model-events

Repository files navigation

django-model-events

https://badge.fury.io/py/django-model-events.png https://travis-ci.org/yunmanger1/django-model-events.png?branch=master

Real-time model events via Websocket (Django channels)

Documentation

The full documentation is at https://django-model-events.readthedocs.org.

Quickstart

Install django-model-events:

pip install django-model-events

Add ``model_events'' to ``INTALLED_APPS'' and include rounting:

from channels.routing import include

from model_events.routing import routes


channel_routing = [
    include(routes, path=r'^/admin/ws'),
]

Include js to your template:

<script>var socket_uri = "/admin/ws";</script>
<script type="text/javascript" src="{% static 'model_events/js/socket.js' %}"></script>

Features

  • TODO

Running Tests

Does the code actually work?

source <YOURVIRTUALENV>/bin/activate
(myenv) $ pip install -r requirements-test.txt
(myenv) $ python runtests.py

Credits

Tools used in rendering this package:

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published