Hi Florian, thank for your input, i dont belive in adding default names to
environment variables, they're up to the user to define. Nothing will be
given by default, you need the SECRET_KEY? `from_env` has no idea what that
means, its just another name, so you tell it what it will do with this such
as `from_env.str("SECRET_KEY")` or simply `from_env("SECRET_KEY")` if its a
string. But if "SECRET_KEY" is taken by some other process and you need to
add another one to be your SECRET_KEY for django and you call it "FOO" then
`FOO` would be the name you pass to `from_env` and assign it to your
SECRET_KEY = from_env('FOO'). Trying to really nail the point home: there
are NO default environment names (other than DJANGO_SETTINGS_MODULE but
that has nothing to do with this).
- Buzzi
--
You received this message because you are subscribed to the Google Groups
"Django developers (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-developers/d6cf479b-4e37-411b-b999-73a5944995a3o%40googlegroups.com.