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
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
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
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
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
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
6 matches
Mail list logo