Opened 15 years ago

Last modified 15 years ago

#13685 closed

get_connection() fails to initialize — at Initial Version

Reported by: Alex Gaynor Owned by: nobody
Component: Documentation Version: 1.2
Severity: Keywords: get_connection
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

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 (0)

Note: See TracTickets for help on using tickets.
Back to Top