Permalink
Browse files

support fb quotes

  • Loading branch information...
1 parent 6eeabc1 commit eba7fe077661c5b5f58979e556ae0e744373cedf Benjamin Golub committed Apr 25, 2017
Showing with 3 additions and 6 deletions.
  1. +2 −6 blog.py
  2. +1 −0 templates/base.html
View
@@ -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),
@@ -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)
View
@@ -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>

0 comments on commit eba7fe0

Please sign in to comment.