ccdjh
2012-12-14 16:59:42 +08:00
#!/usr/bin/env python
# coding=utf-8
import os
import tornado.wsgi
import tornado.web
import sae
class ArticleHandler(tornado.web.RequestHandler):
def get(self):
c = self.get_argument('id')
self.write(c)
class TagHandler(tornado.web.RequestHandler):
def get(self,tag):
self.write(tag)
app = tornado.wsgi.WSGIApplication([
(r"/article/", ArticleHandler),
(r"/tag/([0-9a-zA-Z\-\_]+)", TagHandler),
])
application = sae.create_wsgi_app(app)