Skip to content

Commit

Permalink
Fixed issue 24: Check for django-mailer by using Django's app cache i…
Browse files Browse the repository at this point in the history
…nstead of simple imports

git-svn-id: http://django-notification.googlecode.com/svn/trunk@126 590c3fc9-4838-0410-bb95-17a0c9b37ca9
  • Loading branch information
jezdez committed Jan 3, 2009
1 parent 22c652c commit 11505a0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion notification/models.py
Expand Up @@ -26,8 +26,9 @@

# favour django-mailer but fall back to django.core.mail
try:
mailer = models.get_app("mailer")
from mailer import send_mail
except ImportError:
except ImproperlyConfigured:
from django.core.mail import send_mail

QUEUE_ALL = getattr(settings, "NOTIFICATION_QUEUE_ALL", False)
Expand Down

0 comments on commit 11505a0

Please sign in to comment.