Django-registration cannot set an email address for "from"

I have a django registration setup and work with my application. I am on django 1.1 and use the latest django-registration, 0.8 alpha.
in case this is relevant, I use the fcgi method for deployment, and the django-registration application is deployed in a separate folder. I just add the containing folder to the python path. that is, in the settings.py of my application I do

import sys sys.path.append('/path/to/django-registration-parent-folder') 

in my settings file I also installed

 DEFAULT_FROM_USER = ' email@address.that.should.be used' 

If django registration sends an activation email, it continues to stay from

webmasters @ local

the only way I was able to change this was to change the actual code inside django-registration. i.e. in the line of model.py 254:

 # self.user.email_user(subject, message, settings.DEFAULT_FROM_EMAIL) self.user.email_user(subject, message, ' email@address.that.should.be used') 

Can someone tell me why DEFAULT_FROM_EMAIL in the settings file of my application is not used when sending activation emails?

early

+6
source share
2 answers

Typo, you set DEFAULT_FROM_USER in your settings, but it should be DEFAULT_FROM_EMAIL .

+6
source

Excerpt from settings.py DEFAULT_FROM_USER instead of DEFAULT_FROM_EMAIL

0
source

Source: https://habr.com/ru/post/888796/


All Articles