I am trying to write some python code using tornado. Here is my code.
import sys
import tornado.ioloop
import tornado.web
import constants
class student():
name = ""
class MainHandler(tornado.web.RequestHandler):
def get(self):
loader = tornado.template.Loader(".")
print "MainiiiHandler"
self.write(loader.load("base.html").generate(pics=constants.pics))
application = tornado.web.Application([
(r"/", MainHandler),
])
if __name__ == "__main__":
application.listen(8888)
tornado.ioloop.IOLoop.instance().start()
So when i visit 127.0.0.1:8888, it should print MainiiiHandler in terminal. When i run python code with ‘python test.py’, it turns out actually like this. But when i run with :make in vim, it won’t print MainiiiHandler. Because i really like the make function in vim, so can you help me solve this problem.
Check how
is written.
does NOT work for me (echoes an empty string)
while
actually DOES work.
(if it doesn’t help) This is what :h make shows:
If your system is not Unix, I suppose you have to supply the code that will print the contents of errorfile for you (don’t know for sure as I tested it only under Linux).