Re: Django split settings and environment variables

2013-03-21 Thread Felipe Prenholato
You can use both. If you put exports in your .bashrc you will have it for all your terminal session. When you run a bash script to load uwsgi from supervisor as example, you need to load this .bashrc with source. It's same as use a command line like: SOMEAPP_DB_USER="someapp" SOMEAPP_DB_PASSWORD=

Django split settings and environment variables

2013-03-21 Thread demet8
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