On Tue, Oct 20, 2015 at 11:57 AM, Chris Withers <[email protected]>
wrote:

> What's different between the app in the first snippet and the app in the
> second snippet?
>

Well the second snippet has level of indirection between you and the final
wsgi app. It may not be the one configured in the upper snippet but rather
an app object wrapped in middleware, etc defined from the ini file.

Obviously the second snippet also configures logging prior to loading your
app modules (importing loggers before they are configured always leads to
weird errors).


> What would need to be done to get other tools (pserve, pshell, etc?) to
> work with a non-ini config?
>

Are you asking for a non-ini config or no config at all? For the latter you
simply need to write a runner yourself. For the former there has been some
work on things like montague[1] to make the ini pluggable but it has not
had enough eyes on it yet to consider replacing pyramid's PasteDeploy
dependency yet.

[1] https://montague.readthedocs.org/en/latest/

- Michael

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pylons-discuss.
For more options, visit https://groups.google.com/d/optout.

Reply via email to