Re: Read write config from a file. How?

2011-04-04 Thread Roberto De Ioris
On Apr 3, 4:31 am, hollando wrote: > 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

Re: Read write config from a file. How?

2011-04-02 Thread hollando
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

Re: Read write config from a file. How?

2011-04-02 Thread Addy Yeow
Take a look at http://docs.python.org/library/configparser.html On Sun, Apr 3, 2011 at 4:45 AM, Swordfish wrote: > Hi! is your file in 'ini' format or simply in 'py'? > > Regards, > Eugeny > > 02.04.11, 10:34, "hollando" : > >> Hi, some of my config store in

Re: Read write config from a file. How?

2011-04-02 Thread Swordfish
Hi! is your file in 'ini' format or simply in 'py'? Regards, Eugeny 02.04.11, 10:34, "hollando" : > 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

Re: Read write config from a file. How?

2011-04-02 Thread Addy Yeow
Have you tried http://docs.python.org/library/configparser.html? On Sat, Apr 2, 2011 at 2:34 PM, hollando wrote: > 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

Read write config from a file. How?

2011-04-02 Thread hollando
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 django-users@googlegroups.com. To unsubscribe from