Author: leidel
Date: Wed Jan 21 01:18:19 2009
New Revision: 59

Modified:
    trunk/docs/usage.txt

Log:
Updated docs to check for existence of django-mailer in INSTALLED_APPS  
setting

Modified: trunk/docs/usage.txt
==============================================================================
--- trunk/docs/usage.txt        (original)
+++ trunk/docs/usage.txt        Wed Jan 21 01:18:19 2009
@@ -15,9 +15,10 @@
  core mail support you can do the following in your code::

      # favour django-mailer but fall back to django.core.mail
-    try:
+    form django.conf import settings
+    if "mailer" in settings.INSTALLED_APPS:
          from mailer import send_mail
-    except ImportError:
+    else:
          from django.core.mail import send_mail

  and then just call send_mail like you normally would in Django::

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to