Skip to content

Latest commit

 

History

History
45 lines (28 loc) · 1.02 KB

install.rst

File metadata and controls

45 lines (28 loc) · 1.02 KB

Getting Started

Installation

Install a stable from PyPI using pip:

$ pip install django-notify-x

Install latest commit from Github:

$ pip install -e git+git://github.com/v1k45/django-notify-x.git#egg=notify

Add notify in INSTALLED_APPS of your project settings:

INSTALLED_APPS = (
    ...
    'notify',
    ...
)

Include notify.urls in your urls.py with notifications as namespace:

urlpatterns = [
    ...
    url(r'^notifications/', include('notify.urls', 'notifications')),
    ...
]

Finally, run migrations:

$ python manage.py migrate notify

Dependencies

django-notify-x currently supports Django 1.8 and above. There is no support for previous versions. Both, Python 2.7 as well as Python 3.4 are supported.

It uses django.contrib.postgres.fields.JSONField package to add support to attach JSON data to notifications using the extra field. Only Postgres is supported.