@view_config(name='bar')
def bar_view(request):
    return render_view_to_response(None, request, name='foo')

@view_config(name='baz')
def baz_view(request):
    return foo_view(request)
if __name__ == '__main__':
    config = Configurator()
config.scan()
app = config.make_wsgi_app()
serve(app, host='127.0.0.1', port='5000')
Calling another view in Pyramid