index.wsgi 385 B

123456789101112131415161718
  1. # _*_ coding: utf-8 _*_
  2. import os
  3. import sae
  4. import web
  5. sae.add_vendor_dir('vendor')
  6. from weixin import WeixinInterface
  7. urls = (
  8. '/weixin','WeixinInterface'
  9. )
  10. app_root = os.path.dirname(__file__)
  11. templates_root = os.path.join(app_root, 'templates')
  12. render = web.template.render(templates_root)
  13. app = web.application(urls,globals()).wsgifunc()
  14. application = sae.create_wsgi_app(app)