1 2 3 4 5 6
from pyramid.view import view_config @view_config(name='two', renderer='json') def two(request): return {'nameagain':'Two!'}