Re: Can't return JSON using 1.3b1

2012-02-28 Thread Chris McDonough
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

Re: Can't return JSON using 1.3b1

2012-02-28 Thread Ben Sizer
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

Re: Can't return JSON using 1.3b1

2012-02-28 Thread Chris McDonough
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

Can't return JSON using 1.3b1

2012-02-28 Thread Ben Sizer
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 @