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 <ayeo...@gmail.com> wrote:
> Take a look athttp://docs.python.org/library/configparser.html
>
>
>
>
>
>
>
>
>
> On Sun, Apr 3, 2011 at 4:45 AM, Swordfish <djvi...@yandex.ru> wrote:
> > Hi! is your file in 'ini' format or simply in 'py'?
>
> > Regards,
> > Eugeny
>
> > 02.04.11, 10:34, "hollando" <hrqi...@gmail.com>:
>
> >> 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 this group, send email to django-users+unsubscribe@googlegroups.com.
> > 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 django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
No comments:
Post a Comment