Skip to main content

A pluggable notification system written for the Django framework.

Project description

django-nyt
==========

django\_nyt does this:

.. code:: python

from django_nyt 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 an cleverly sifted stream of events. Ensure that they have
the possibility of customizing what they deem fit for their stream.

What do you need to do?
-----------------------

You need to do a lot. 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:

.. figure:: https://raw2.github.com/benjaoming/django-nyt/master/docs/misc/screenshot_dropdown.png
:alt: Javascript drop-down

Javascript drop-down
Some examples are provided, but there is no real easy way to place this
nifty little thing at the top of your site.

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*.

|Build Status|

|Downloads|

|Downloads|

*This is a work in progre..*
----------------------------

Please refer to the
`TODO <https://github.com/benjaoming/django-nyt/blob/master/TODO.md>`__

.. |Build Status| image:: https://travis-ci.org/benjaoming/django-nyt.png?branch=master
:target: https://travis-ci.org/benjaoming/django-nyt
.. |Downloads| image:: https://pypip.in/d/django-nyt/badge.png
:target: https://crate.io/package/wiki
.. |Downloads| image:: https://pypip.in/v/django-nyt/badge.png
:target: https://crate.io/package/wiki

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.1.tar.gz (20.2 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for django-nyt-0.9.1.tar.gz
Algorithm Hash digest
SHA256 d629b36d5bc40bd9a9d689629f52e878f20e586a2c0fa2c1e2c43b1f61fcbbd8
MD5 a820a4a45ae908f081cf7d81daac1b4f
BLAKE2b-256 3956017cd9c8b2f8317a56ebb83b06d315abb1779792c201601e4e2ebe544c97

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