Skip to content

Instantly share code, notes, and snippets.

View redrush85's full-sized avatar

Alexander Kuts redrush85

View GitHub Profile
@redrush85
redrush85 / app.py
Created April 22, 2014 09:28 — forked from ayang/app.py
class Application(tornado.web.Application):
def __init__(self):
tornado.web.Application.__init__(self, handlers, **settings)
self.db_session = db_session
self.redis = redis.StrictRedis()
self.session_store = RedisSessionStore(self.redis)
class BaseHandler(tornado.web.RequestHandler):