Yes. Thanks for your replies. I have one more question. I want to put all my configures into one file and pass the file name by command line. My django is deployed as in uwsgi, so I pass the command line by -- pyargv '-c /etc/myconfig.ini'. In django, how can I retrieve this command line file name? If I set it by os.enviroment, how to retrieve it? Thanks.
On Apr 2, 7:00 pm, Addy Yeow <[email protected]> wrote: > Take a look athttp://docs.python.org/library/configparser.html > > > > > > > > > > On Sun, Apr 3, 2011 at 4:45 AM, Swordfish <[email protected]> wrote: > > Hi! is your file in 'ini' format or simply in 'py'? > > > Regards, > > Eugeny > > > 02.04.11, 10:34, "hollando" <[email protected]>: > > >> Hi, some of my config store in a file not in settings.py. Are there > >> any build in library doing that? Thanks > > > -- > > 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 > > athttp://groups.google.com/group/django-users?hl=en. > > --http://www.dazzlepod.com.http://twitter.com/dazzlepod > We write elegant and minimal apps that works. We develop web apps with > Django framework. -- 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.

