an env file is basically imported into your OS environment, so you can 
retrieve them with the same interface.  That means you can easily include 
that with your build environment, or inject in some other means.  Can't do 
that with settings.

Also, lets you keep one settings file, and use `os.environ.get()` anywhere 
you need to, which provides an identical interface.

On Tuesday, December 28, 2021 at 2:58:28 PM UTC-5 bnmng wrote:

> Hi everyone,
>
> I can't wrap my mind around why having my settings in a .env file is more 
> secure than having them in a local_settings.py file, or why one of the 
> various methods is better than another as long as you keep your local 
> settings out of your version control.  Any opinions?
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/b55a11a7-f219-4a24-a734-b55fdc255cf9n%40googlegroups.com.

Reply via email to