get_connection() fails to initialize
— at Version 1
> from django.core import mail
> connection = mail.get_connection(backend="django.core.mail.backends.smtp")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/alwaysdata/python/django/1.2.1/django/core/mail/__init__.py", line 41, in get_connection
return klass(fail_silently=fail_silently, **kwds)
TypeError: 'module' object is not callable
Change History
(1)
Description: |
modified (diff)
|
Resolution: |
→ invalid
|
Status: |
new → closed
|
Shouldn't that be:
?
I would expect to pass in the same as what the default setting value is: http://docs.djangoproject.com/en/dev/topics/email/#smtp-backend...and that seems to work fine.