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
now, the default are used IFF the entry MYVAR is not present in the .env file.
if i've an entry of this type MYVAR=ACTIVE:True; the result is a dictionary that is {"ACTIVE":"True"}
wouldn't be better to apply the default for all the keys that are not specified in the env? thus, in my example i would get {"ACTIVE":"True", "URL": "http://example.com"}
The text was updated successfully, but these errors were encountered:
Not sure about the complexity, looks like a nice addition, as I'm tinkering with improving logging configuration (ie. via env vars) for a handful of legacy apps. Still figuring out what/how to merge from logging's dictConfig().
With dict we can set defaults
now, the default are used IFF the entry
MYVAR
is not present in the.env
file.if i've an entry of this type
MYVAR=ACTIVE:True;
the result is a dictionary that is{"ACTIVE":"True"}
wouldn't be better to apply the default for all the keys that are not specified in the env? thus, in my example i would get
{"ACTIVE":"True", "URL": "http://example.com"}
The text was updated successfully, but these errors were encountered: