Author: leidel
Date: Sat Jan 3 09:17:25 2009
New Revision: 126
Modified:
trunk/notification/models.py
Log:
Fixed issue 24: Check for django-mailer by using Django's app cache instead
of simple imports
Modified: trunk/notification/models.py
==============================================================================
--- trunk/notification/models.py (original)
+++ trunk/notification/models.py Sat Jan 3 09:17:25 2009
@@ -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)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pinax-updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/pinax-updates?hl=en
-~----------~----~----~----~------~----~------~--~---