How to access model or views attributes in django settings.py? -
i want update email host user , password, present in database .. don't know how update it. mentioned in settings.py file. this,
email_host_user = 'sender_mail@mail.com' email_host_password = 'passxxpass'.... want change dynamically while updating database.
my table contain email id , password. may change dynamically based on user requirement. want same in email_host_user
, password
... send mail..
django's send_mail
(which presume you're using) has 2 parameters auth_user
, auth_password
, should use these instead of trying change settings
send_mass_mail
, others have these parameters
Comments
Post a Comment