GithubHelp home page GithubHelp logo

duvholt / django-nyt Goto Github PK

View Code? Open in Web Editor NEW

This project forked from django-wiki/django-nyt

0.0 2.0 0.0 275 KB

Notification system for Django with batteries included: Email digests, user settings, JSON API

License: Apache License 2.0

Python 93.84% Shell 6.16%

django-nyt's Introduction

django-nyt

django_nyt does this:

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:

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

django-nyt's People

Contributors

benjaoming avatar holoduke avatar jluttine avatar destos avatar

Watchers

James Cloos avatar Christian Duvholt avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.