You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As far as I understand, the variable should be DJANGO_MY_URL in your .env file. When you set environ_prefix="", you are telling django-configurations to not add the prefix "DJANGO_"
I started using the values now and am having some issues with it as well (check #379 )
Hi
First of all, thanks for making django-configurations. It's great! Thank you
I've noticed a weird bug while using the DOTENV in my configurations
I have an .env file with this value
.env
MY_URL=http://some.domain.com
And in my settings.py file I define this
settings.py
When I run
Everything work as expected,
MY_URL
gets its value from the.env
file.But when I run other
manage.py
commands (I haven't checked with all of them)MY_URL
isNone
.For now I can workaround that by setting
environ_prefix
to an empty string instead of usingenviron_name
.settings.py
I've tried to dig through the source code to see if I can fix this but so far I haven't.
If I find something, I'll try opening a PR.
Any Ideas where to look?
The text was updated successfully, but these errors were encountered: