I just picked up a copy of "Two Scoops of Django".  It covers this
very, and much more in the area of project setup and management with
Django. Some great lessons learned in this book.  Well worth the
investment.  See the Django resources page for the link.

HTH,

--Tim

On Thu, Mar 21, 2013 at 11:42 AM, demet8 <dem...@gmail.com> wrote:
> 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.
>
>



-- 
============================================
Timothy Cook, MSc           +55 21 94711995
MLHIM http://www.mlhim.org
Like Us on FB: https://www.facebook.com/mlhim2
Circle us on G+: http://goo.gl/44EV5
Google Scholar: http://goo.gl/MMZ1o
LinkedIn Profile:http://www.linkedin.com/in/timothywaynecook

-- 
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.


Reply via email to