[pylons-discuss] Static Files on Elastic Beanstalk

2017-11-01 Thread Andrew Burnett
I'm trying to serve some static css, png's, etc. from my Pyramid app that's hosted on Elastic Beanstalk. It works fine on my local machine but when I try to run on EB, neither the CSS nor the images are found. Here's the relevant code: >From .ebextensions: option_settings:

Re: [pylons-discuss] How to enable JSON renderer as default for all views?

2017-11-01 Thread Michael Merickel
This renderer feature does not override the other one which is "if you return a Response object then no renderers will be invoked". HTTPOk is a Response subclass. This is covered in the first few paragraphs of the renderer chapter. I'd be open to a PR that clarified the docs on this in the section

[pylons-discuss] How to enable JSON renderer as default for all views?

2017-11-01 Thread jens . troeger
Hello, The documentation for the default renderer for all views seems to suggest that the following should work: from pyramid.renderers import JSON config = Configurator( … )