从hello world看pyramid的配置
pyramid的配置分为强制式配置和声明式配置
强制式的helloworld是:
from paste.httpserver import servefrom pyramid.response import Responsefrom pyramid.view import view_config@view_config()def hello(request): return Response('Hello')if __name__ == '__main__': from pyramid.config import Configurator config = Configurator() config.scan() app = config.make_wsgi_app() serve(app, host='0.0.0.0')