Commits

Shinya Okano committed 123396b

update toppage

Comments (0)

Files changed (3)

tokibito/app.yaml

   script: main.application
 
 builtins:
-- datastore_admin: on
 - deferred: on
 - appstats: on
 - remote_api: on
 - name: webob
   version: latest
 - name: django
-  version: latest
+  version: latest

tokibito/apps/toppage.py

+import sys
 import re
 
 from google.appengine.ext import webapp
         from apps.presentation import api as presentation_api
         return {
             'is_smartphone': bool(RE_UA_SMARTPHONE.search(self.request.user_agent)),
-            'presentation_objects': presentation_api.get_presentation_all()
+            'presentation_objects': presentation_api.get_presentation_all(),
+            'sys_version': sys.version,
         }
 
 application = webapp.WSGIApplication([(r'/', TopPageHandler)])

tokibito/templates/index.html

 
 <h3>Books</h3>
 <div class="amazon">
+  <a href="http://www.amazon.co.jp/gp/product/4798032948/ref=as_li_tf_il?ie=UTF8&tag=tokibitossoft-22&linkCode=as2&camp=247&creative=1211&creativeASIN=4798032948"><img border="0" src="http://ws.assoc-amazon.jp/widgets/q?_encoding=UTF8&Format=_SL110_&ASIN=4798032948&MarketPlace=JP&ID=AsinImage&WS=1&tag=tokibitossoft-22&ServiceVersion=20070822" ></a><img src="http://www.assoc-amazon.jp/e/ir?t=tokibitossoft-22&l=as2&o=9&a=4798032948" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" />
   <a href="http://www.amazon.co.jp/gp/product/4048676938/ref=as_li_tf_il?ie=UTF8&tag=tokibitossoft-22&linkCode=as2&camp=247&creative=1211&creativeASIN=4048676938"><img border="0" src="http://ws.assoc-amazon.jp/widgets/q?_encoding=UTF8&Format=_SL110_&ASIN=4048676938&MarketPlace=JP&ID=AsinImage&WS=1&tag=tokibitossoft-22&ServiceVersion=20070822" ></a><img src="http://www.assoc-amazon.jp/e/ir?t=tokibitossoft-22&l=as2&o=9&a=4048676938" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" />
 </div>
+
+<h3>AppEngine</h3>
+<div>
+<pre>{{ sys_version }}</pre>
+</div>
 {% endblock %}