Skip to content

Commit

Permalink
support fb quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Golub committed Apr 25, 2017
1 parent 6eeabc1 commit eba7fe0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
8 changes: 2 additions & 6 deletions blog.py
Expand Up @@ -414,7 +414,7 @@ def render(self, cursor):
"xsrf_cookies": True,
}

application = tornado.wsgi.WSGIApplication([
application = tornado.web.Application([
(r"/", HomeHandler),
(r"/about/?", AboutHandler),
(r"/archive/?", ArchiveHandler),
Expand All @@ -427,8 +427,4 @@ def render(self, cursor):
(r".*", CatchAllHandler),
], **settings)

def main():
wsgiref.handlers.CGIHandler().run(application)

if __name__ == "__main__":
main()
application = tornado.wsgi.WSGIAdapter(application)
1 change: 1 addition & 0 deletions templates/base.html
Expand Up @@ -39,6 +39,7 @@
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId={{ handler.settings.get("fb_app_id", "") }}";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<div class="fb-quote"></div>
{% end %}
<table id="body">
<tr>
Expand Down

0 comments on commit eba7fe0

Please sign in to comment.