Skip to content

Commit

Permalink
Do not use get_app for getting mailer. It was causing a circular import.
Browse files Browse the repository at this point in the history
  • Loading branch information
brosner committed Apr 19, 2009
1 parent f7d0e17 commit ba8de99
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions notification/backends/email.py
Expand Up @@ -11,13 +11,11 @@
from notification.message import message_to_text

# favour django-mailer but fall back to django.core.mail
try:
mailer = get_app("mailer")
if "mailer" in settings.INSTALLED_APPS:
from mailer import send_mail
except ImproperlyConfigured:
else:
from django.core.mail import send_mail


class EmailBackend(backends.BaseBackend):
spam_sensitivity = 2

Expand Down

0 comments on commit ba8de99

Please sign in to comment.