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 users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.