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")
I have attached a patch, now it raises ImproperlyConfi gured error instead of the AttributeError.
Added the following code.
mail_from= getattr( settings, 'EMAIL_ CONFIRMATION_ FROM', getattr(settings, 'DEFAULT_ FROM_EMAIL' , 'NONE')) gured(" Configurations have not been done properly, EMAIL_CONFIRMAT ION_FROM or DEFAULT_FROM_EMAIL value(s) have not been set")
if(mail_from == 'NONE'):
raise ImproperlyConfi