Okay, I've decided to split the uwsgi stanza into a separate file because I
keep getting that exception when different bits of code read the INI file.
 Right now I'm running things by "uwsgi --ini-paste production.ini".  (This
is what's suggested here:
http://projects.unbit.it/uwsgi/wiki/Example#Pylonsandnginxthehappyway)  But
I'm not sure how to split the INI file and still load both parts properly.

Here's what I'm doing and it seems to be working, but just want to make
sure this is okay:
I moved the [uwsgi] stanza into production_uwsgi.ini and am loading it with
"uwsgi --ini production_uwsgi.ini --ini-paste production.ini"

Does uwsgi just merge what it finds in the two ini files if there is a
uwsgi stanza in both?

-Tim


On Wed, Mar 13, 2013 at 2:42 PM, Roberto De Ioris <[email protected]> wrote:

>
> > I can't seem to find anyone else having this issue, but I'd be very
> > surprised if I was the only one.
> >
> > Essentially, I'm trying to have uwsgi manage 2 external processes for me
> > using these instructions:
> > http://uwsgi-docs.readthedocs.org/en/latest/AttachingDaemons.html
> > However,
> > having two entries in an INI file with the same key in the same section
> > gives a configparser.DuplicateOptionError exception when using Python 3.2
> > or greater.  This is due to a change they made where the default setting
> > of
> > the config parser is strict=True (the docs state "Changed in version 3.2:
> > In previous versions of configparser behaviour matched strict=False.").
> >  So, the default is that you can't have duplicate keys in a section
> unless
> > you pass strict=False into ConfigParser().
> >
> > I filed an issue with PasteDeploy (
> >
> https://bitbucket.org/ianb/pastedeploy/issue/13/python-32-changed-configparser-to-default
> ),
> > but unfortunately I keep running into the same problem for every time
> > something wants to read the INI file (not just PasteDeploy).
> >
> > Is there an alternate way of doing this?  Maybe some way of passing in a
> > list?
> >
> > -Tim
>
>
> As you are talking about python code, i have to assume you are referring
> to the parser of pastdeploy that finding the uwsgi stanza with duplicated
> keys explodes.
>
> Can't you simply put the uwsgi config in another file ?
>
>
> --
> Roberto De Ioris
> http://unbit.it
> _______________________________________________
> uWSGI mailing list
> [email protected]
> http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
>
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to