I don't think that this settings should part of your .env
. This file should look like this
DEBUG=on
SECRET_KEY=your-secret-key
DATABASE_URL=psql://user:[email protected]:8458/database
SQLITE_URL=sqlite:///my-local-sqlite.db
CACHE_URL=memcache://127.0.0.1:11211,127.0.0.1:11212,127.0.0.1:11213
REDIS_URL=rediscache://127.0.0.1:6379/1?client_class=django_redis.client.DefaultClient&password=ungithubbed-secret
I guess your settings (taken from the docs) should be used inside settings.py
or in a custom email_config
EMAIL_CONFIG = env.email_url('EMAIL_URL',default='smtp://user@:password@localhost:25')
vars().update(EMAIL_CONFIG)
Check the installation and usage docs from django-environ.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…