Giter VIP home page Giter VIP logo

django-notifier's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

django-notifier's Issues

Does not work or silent failure?

I gave this package a shot, but could not get it work. Here are some of my notes:

  • Created a repo and django project with a postgesdb.
  • Created a "hello" app.
  • Run the following code:

settings.py

EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'

Created the files test-notification_email_message.txt, and test-notification_email_subject.txt

From the console.

from notifier.shortcuts import create_notification
create_notification('test-notification')

That created a row in "notifier_notification"

1   2015-01-16 18:37:01.17277-08    2015-01-16 18:37:01.172997-08   test-notification   test-notification   TRUE

Now to send the email

from notifier.shortcuts import send_notification
from django.contrib.auth.models import User
u = User.objects.get(pk=1)
send_notification('test-notification', [u])

This does nothing? Any ideas?

I liked the concept of this package. I like that backends can be added such as Push Notifications, SMS, etc.


Output of pip freeze:

Django==1.7.1
django-notifier==0.7
psycopg2==2.5.4
wsgiref==0.1.2

Add 'read' property on sent notifications

Heya,

I want to display the sent notifications also in the user's dashboard (or menu) with an unread count.

It would be great if this could be done as property of the SentNotification model. This way we can (in the future) also include an image in the html emails which automatically sets the 'read' boolean.

{% load attribute %} error

Where does attribute come from? I can't get a settings form to display:

'attribute' is not a valid tag library: Template library attribute not found, tried...

Use model_utils instead of django-bits

Hey,

Second issue (because this app looks really promising). Will you accept a patch to use model_utils TimestampedModel instead of the variant in django-bits. Reason for this is that model_utils is more 'standard' and django-bits seems like a collection of random utils :-)

syncdb not to models AUTH_USER_MODEL

syncdb and south

CommandError: One or more models did not validate: notifier.userprefs: 'user' defines a relation with the model 'auth.User', which has been swapped out. Update the relation to point at settings.AUTH_USER_MODEL. notifier.sentnotification: 'user' defines a relation with the model 'auth.User', which has been swapped out. Update the relation to point at settings.AUTH_USER_MODEL.

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.