Skip to main content

A pluggable notification system written for the Django framework.

Project description

https://travis-ci.org/benjaoming/django-nyt.png?branch=master Documentation Status https://badge.fury.io/py/django-nyt.svg

django-nyt does this:

from django_nyt.utils import notify

EVENT_KEY = "my_key"
notify(_("OMG! Something happened"), EVENT_KEY)

All users subscribing to EVENT_KEY will have a notification created in their stack. If you have emails enabled, they may get a summary of notifications at an interval of their choice.

Data can be accessed easily from Django models or from the included JSON views.

Why should you do this?

Users need a cleverly sifted stream of events that’s highly customizable as well. By using django-nyt, your users can subscribe to global events or specific events pertaining specific objects.

Each event can be associated with a link so the user can use the notifications as shortcuts in their work flow.

What do you need to do?

You need to do a lot! But django-nyt does everything to meet as many needs as possible. Firstly, you need to write some javascript that will fetch the latest notifications and display them in some area of the screen. Upon clicking that icon, the latest notifications are displayed. Something like this:

Javascript drop-down

Javascript drop-down: Some examples are provided in the docs, but there is no real easy way to place this nifty little thing at the top of your site, you’re gonna have to work it out on your own.

Other things for your TODO list:

  • Provide your users with options to customize their subscriptions and notification preferences

  • Customize contents of notification emails

  • Make the mail notification daemon script run python manage.py notifymail --daemon

  • Put calls to notify(...) where ever necessary

Docs

Here:

http://django-nyt.readthedocs.org/en/latest/

Community

Please visit #django-wiki on irc.freenode.net as many django-wiki users are also familiar with django-nyt which previously lived inside django-wiki.

Development

In your Git fork, run pip install -r requirements.txt to install the requirements.

The folder testproject/ contains a pre-configured django project and an sqlite database. Login for django admin is admin:admin.

This is a work in progre..

Please refer to the TODO

Project details


Download files

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

Source Distribution

django-nyt-0.9.9.tar.gz (21.6 kB view details)

Uploaded Source

Built Distribution

django_nyt-0.9.9-py2.py3-none-any.whl (30.0 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file django-nyt-0.9.9.tar.gz.

File metadata

  • Download URL: django-nyt-0.9.9.tar.gz
  • Upload date:
  • Size: 21.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for django-nyt-0.9.9.tar.gz
Algorithm Hash digest
SHA256 739c8b39f1de4141f31898acbe1d672db532cb468e0cfdd33bd8d8edbe5638c6
MD5 31fd79aa68288accf047fea0ac0d97a0
BLAKE2b-256 fffe7c732455f3b76e74dd52f1c5d9b1547bbd03df3f479b73edb18ed9ea784b

See more details on using hashes here.

File details

Details for the file django_nyt-0.9.9-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for django_nyt-0.9.9-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 efbeb8b4b18cfecab5828e39225eeac1a7798a72faf8a8a5850d18b14d70602d
MD5 324d5a17e9f3ce0742ce52fcd5d5098c
BLAKE2b-256 4a5603eb1b28de7a45e3342d1c6168cc45dae2511a5fed01e0eb6891645ef8a5

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page