There's nothing special about settings.py. You could do something like:
from Crypto.Cipher import Blowfish blowme = Blowfish.new(SECRET_KEY) DATABASE_PASSWORD = blowme.decrypt(ENCRYPTED_PASSWORD) Securing SECRET_KEY is left as an exercise for the reader. On Jan 5, 2010, at 11:10 AM, Eyüp Hakan Duran wrote: > Hi all, > > I am very new to django so please be gentle with me. I understand that > we need to define the password to login to the database in the > settings.py file. Although I know one can set the permissions of this > file to be not readable by others, I was just wondering whether there > is another option that is more secure. > > Regards. > > -- > > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > >
-- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

