diff --git a/.env.sample b/.env.sample index c4eb5c1d..6833fb72 100644 --- a/.env.sample +++ b/.env.sample @@ -12,3 +12,6 @@ AWS_SECRET_ACCESS_KEY=yoursecretaccesskeygoeshere AWS_STORAGE_BUCKET_NAME=yourawsbucketname ALLOWED_HOSTS=localhost,yourdomain.com, youripadrress + +EMAIL_HOST_USER=username +EMAIL_HOST_PASSWORD=password \ No newline at end of file diff --git a/ANGA_UTM/sendgridauth/conf.py b/ANGA_UTM/sendgridauth/conf.py index c75e81e5..2c287b9e 100644 --- a/ANGA_UTM/sendgridauth/conf.py +++ b/ANGA_UTM/sendgridauth/conf.py @@ -1,6 +1,8 @@ +from decouple import config -EMAIL_HOST = 'smtp.sendgrid.net' -EMAIL_HOST_USER = 'geoffreynyaga' -EMAIL_HOST_PASSWORD = 'Marrakech3616' + +EMAIL_HOST = "smtp.sendgrid.net" +EMAIL_HOST_USER = config("EMAIL_HOST_USER") +EMAIL_HOST_PASSWORD = config("EMAIL_HOST_PASSWORD") EMAIL_PORT = 587 EMAIL_USE_TLS = True