Skip to content

Having a Working Pyramid Example #278

@Miserlou

Description

@Miserlou

Somebody mentioned having some trouble with Pyramid and Zappa, but I haven't explored it yet. It should be somewhat straight forward, but I haven't confirmed it yet. My guess is that it'll mean having something like this:

def generate_wsgi_app():
    config = Configurator()
    config.add_route('hello', '/hello/{name}')
    config.add_view(hello_world, route_name='hello')
    app = config.make_wsgi_app()
    return app

and then

{
    "dev": {
       "s3_bucket": "lmbda",
       "app_function": "your_module.generate_wsgi_app"
    }
}

But, I haven't tried this yet. Does this make sense, @bbangert ? Is there a pattern/convention that'd be better?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions