#!/usr/bin/env python3
# -*- coding=utf-8 -*-
import tornado.web
from tornado.options import options, define
import tornado.options
import tornado.ioloop

from handlers import main

define('port', default=8000, help="listening port", type=int)


class App(tornado.web.Application):
    def __init__(self):
        handlers = [
            ('/', main.IndexHandler),
            ('/explore', main.ExploreHandler),
            ('/post/(?P<post_id>[0-9]+)', main.PostHandler),
            ('/upload', main.UploadHandler)

        ]

        settings = dict(
            debug=True,
            template_path='templates'
        )

        super(App, self).__init__(handlers, **settings)


application = App()
if __name__ == "__main__":
    print('Starting Server......')
    tornado.options.parse_command_line()
    application.listen(options.port)
    print('Server  started')
    tornado.ioloop.IOLoop.current().start()




7464ffc49fed5b9df8a89eaaddaa4c4434f9fe52
<mask token>


class App(tornado.web.Application):

    def __init__(self):
        handlers = [('/', main.IndexHandler), ('/explore', main.
            ExploreHandler), ('/post/(?P<post_id>[0-9]+)', main.PostHandler
            ), ('/upload', main.UploadHandler)]
        settings = dict(debug=True, template_path='templates')
        super(App, self).__init__(handlers, **settings)


<mask token>

<mask token>
define('port', default=8000, help='listening port', type=int)


class App(tornado.web.Application):

    def __init__(self):
        handlers = [('/', main.IndexHandler), ('/explore', main.
            ExploreHandler), ('/post/(?P<post_id>[0-9]+)', main.PostHandler
            ), ('/upload', main.UploadHandler)]
        settings = dict(debug=True, template_path='templates')
        super(App, self).__init__(handlers, **settings)


<mask token>
if __name__ == '__main__':
    print('Starting Server......')
    tornado.options.parse_command_line()
    application.listen(options.port)
    print('Server  started')
    tornado.ioloop.IOLoop.current().start()

<mask token>
define('port', default=8000, help='listening port', type=int)


class App(tornado.web.Application):

    def __init__(self):
        handlers = [('/', main.IndexHandler), ('/explore', main.
            ExploreHandler), ('/post/(?P<post_id>[0-9]+)', main.PostHandler
            ), ('/upload', main.UploadHandler)]
        settings = dict(debug=True, template_path='templates')
        super(App, self).__init__(handlers, **settings)


application = App()
if __name__ == '__main__':
    print('Starting Server......')
    tornado.options.parse_command_line()
    application.listen(options.port)
    print('Server  started')
    tornado.ioloop.IOLoop.current().start()

import tornado.web
from tornado.options import options, define
import tornado.options
import tornado.ioloop
from handlers import main
define('port', default=8000, help='listening port', type=int)


class App(tornado.web.Application):

    def __init__(self):
        handlers = [('/', main.IndexHandler), ('/explore', main.
            ExploreHandler), ('/post/(?P<post_id>[0-9]+)', main.PostHandler
            ), ('/upload', main.UploadHandler)]
        settings = dict(debug=True, template_path='templates')
        super(App, self).__init__(handlers, **settings)


application = App()
if __name__ == '__main__':
    print('Starting Server......')
    tornado.options.parse_command_line()
    application.listen(options.port)
    print('Server  started')
    tornado.ioloop.IOLoop.current().start()

#!/usr/bin/env python3
# -*- coding=utf-8 -*-
import tornado.web
from tornado.options import options, define
import tornado.options
import tornado.ioloop

from handlers import main

define('port', default=8000, help="listening port", type=int)


class App(tornado.web.Application):
    def __init__(self):
        handlers = [
            ('/', main.IndexHandler),
            ('/explore', main.ExploreHandler),
            ('/post/(?P<post_id>[0-9]+)', main.PostHandler),
            ('/upload', main.UploadHandler)

        ]

        settings = dict(
            debug=True,
            template_path='templates'
        )

        super(App, self).__init__(handlers, **settings)


application = App()
if __name__ == "__main__":
    print('Starting Server......')
    tornado.options.parse_command_line()
    application.listen(options.port)
    print('Server  started')
    tornado.ioloop.IOLoop.current().start()



