Issue 16: utils.py loads the mailer app without a check
http://code.google.com/p/django-messages/issues/detail?id=16
New issue report by [EMAIL PROTECTED]:
Currently the the utils.py loads the mailer app without a check
if its in the settings.py
quick fix to make it work
Index: utils.py
===================================================================
--- utils.py (revision 74)
+++ utils.py (working copy)
@@ -4,13 +4,17 @@
from django.template import Context, loader
from django.template.loader import render_to_string
from django.conf import settings
+from django.db.models import get_app
+from django.core.exceptions import ImproperlyConfigured
# favour django-mailer but fall back to django.core.mail
try:
- from mailer import send_mail
-except ImportError:
- from django.core.mail import send_mail
+ mailer = get_app("mailer")
+ from mailer import send_mail
+except ImproperlyConfigured:
+ from django.core.mail import send_mail
Issue attributes:
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---