I am trying to configure email environment settings in my django project. I am using django-environ package. I have pasted this code:
EMAIL_CONFIG = env.email_url('EMAIL_URL',default='smtp://user@:password@localhost:25')
vars().update(EMAIL_CONFIG)
in my .env file. But when i run the server am getting an error saying:
"django.core.exceptions.ImproperlyConfigured: Set the EMAIL_CONFIG environment variable"
what am getting wrong?