#! /usr/bin/env python
#! -*- coding: utf-8 -*-


from m2wsgi.io.standard import WSGIHandler
from wiktionary import app

zmq_port = "tcp://127.0.0.1:9999"
handler = WSGIHandler(app, zmq_port)
handler.serve()
Beispiel #2
0
def main() :
    print 'Server started'
    handler = WSGIHandler(app, conn)
    handler.serve()

    sqlhub.processConnection = connectionForURI('sqlite:///Users/rahulpaliwal/projects/todo/server/profiles/handlers/database/todo.db')