Author: leidel
Date: Wed Jan 21 01:16:58 2009
New Revision: 58
Modified:
wiki/QuickStartGuide.wiki
Log:
Edited wiki page through web user interface.
Modified: wiki/QuickStartGuide.wiki
==============================================================================
--- wiki/QuickStartGuide.wiki (original)
+++ wiki/QuickStartGuide.wiki Wed Jan 21 01:16:58 2009
@@ -12,14 +12,12 @@
Because django-mailer currently uses the same function signature as
django's core mail support you can do the following in your code
{{{
-from django.db import models
-from django.core.exceptions import ImproperlyConfigured
+from django.conf import settings
# favour django-mailer but fall back to django.core.mail
-try:
- mailer = models.get_app("mailer")
+if "mailer" in settings.INSTALLED_APPS:
from mailer import send_mail
-except ImproperlyConfigured:
+else:
from django.core.mail import send_mail
}}}
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---