config.yaml文件:
name: zakichen
version: 1
libraries:
- name: webpy
version: "0.36"
- name: lxml
version: "2.3.4"
index.wsgi文件:
# -*- coding:utf-8 -*-
import os
import sae
import web
from weixinInterface import WeixinInterface
urls = ('/weixin','WeixinInterface')
app_root = os.path.dirname(__file__)
templates_root = os.path.join(app_root,'templates')
render = web.template.render(templates_root)
app = web.application(urls,globals()).wsgifunc()
application = sae.create_wsgi_app(app)