I have a common.py, dev.py, and prod.py for my Django settings files. All
files inherit from common.py. I want to keep my database passwords,
database URL, etc stored as environment variables. I have researched the
topic but I am not sure If I have a clear understanding of it. I am hoping
I can get a more comprehensive answer via this forum. This is what I have
thus far:
*In your bash shell type:*
export SOMEAPP_DB_USER='someapp'
export SOMEAPP_DB_PASSWORD='1234'
*In my Django settings file type*:
DATABASE_USER = os.environ.get("SOMEAPP_DB_USER", ")
DATABASE_PASSWORD = os.environ.get("SOMEAPP_DB_PASSWORD", ")
So are my passwords stored in just a terminal session? or are they being
stored in something like my bash_profile?
Thanks.
--
You received this message because you are subscribed to the Google Groups
"Django developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-developers?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.