Not Able To Access Environment Variable From Django App

I am trying to access the environment variable within the django app for email and password but when i try to reset the password using the form then it is showing SMTPSenderRefused Authentication Required. When i try to hard code the credentials then it is working fine.

How are you trying to do it?

We use the django-environ module to add settings from environment variables. It works fine for us.