Comment 4 for bug 1437866

Revision history for this message
Pavan Koli (pskoli93) wrote :

I have attached a patch, now it raises ImproperlyConfigured error instead of the AttributeError.
Added the following code.

mail_from=getattr(settings, 'EMAIL_CONFIRMATION_FROM', getattr(settings, 'DEFAULT_FROM_EMAIL', 'NONE'))
if(mail_from == 'NONE'):
raise ImproperlyConfigured("Configurations have not been done properly, EMAIL_CONFIRMATION_FROM or DEFAULT_FROM_EMAIL value(s) have not been set")