Skip to content

Instantly share code, notes, and snippets.

@shreyansb
Created March 9, 2012 23:17
Show Gist options
  • Save shreyansb/2009241 to your computer and use it in GitHub Desktop.
Save shreyansb/2009241 to your computer and use it in GitHub Desktop.
# this
application = tornado.web.Application([
(r"/", MainHandler), # get() - homepage - link to app
(r"/cofi/.*", CofiHandler) # get()
])
# becomes
app_settings = {
'debug': True
}
application = tornado.web.Application([
(r"/", MainHandler), # get() - homepage - link to app
(r"/cofi/.*", CofiHandler) # get()
], **app_settings)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment