On Tue, 2012-02-28 at 10:03 -0800, Ben Sizer wrote:
> On Feb 28, 5:41 pm, Chris McDonough wrote:
> >
> > You can't mic view_config with add_view. Instead use view_config with a
> > scan:
> >
> > from wsgiref.simple_server import make_server
> > from pyramid.config import Configurator
> > from pyr
On Feb 28, 5:41 pm, Chris McDonough wrote:
>
> You can't mic view_config with add_view. Instead use view_config with a
> scan:
>
> from wsgiref.simple_server import make_server
> from pyramid.config import Configurator
> from pyramid.view import view_config
>
> @view_config(renderer='json', route
On Tue, 2012-02-28 at 09:25 -0800, Ben Sizer wrote:
> Here's my code (JSON function copied from
> http://docs.pylonsproject.org/projects/pyramid/en/latest/narr/renderers.html,
> and the rest from the Hello World):
>
>
> from wsgiref.simple_server import make_server
> from pyramid.config i
Here's my code (JSON function copied from
http://docs.pylonsproject.org/projects/pyramid/en/latest/narr/renderers.html,
and the rest from the Hello World):
from wsgiref.simple_server import make_server
from pyramid.config import Configurator
from pyramid.view import view_config
@