Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not work or silent failure? #7

Open
rchrd2 opened this issue Jan 17, 2015 · 0 comments
Open

Does not work or silent failure? #7

rchrd2 opened this issue Jan 17, 2015 · 0 comments

Comments

@rchrd2
Copy link

rchrd2 commented Jan 17, 2015

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant