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
I was a little curious - in all the documentation it says to do something like this:
env = environ.Env(
# set casting, default
DEBUG=(bool, False),
)
DEBUG=env("DEBUG")
# I am adding these two for example purposes similar to documentation style
ALLOWED_HOSTS = env("ALLOWED_HOSTS")
SECRET_KEY = env("DJANGO_SECRET_KEY")
Is there any benefit to casing and/or setting defaults to other things in the environ.Env() call? For example:
I was a little curious - in all the documentation it says to do something like this:
Is there any benefit to casing and/or setting defaults to other things in the
environ.Env()
call? For example:Is there any benefit to one way over the other? Is one better than the other or are they identical?
Or would something like this be better?
Just looking for thoughts on which is the 'ideal' way - any advice appreciated!
The text was updated successfully, but these errors were encountered: