diff options
| author | Andi Albrecht <albrecht.andi@gmail.com> | 2011-07-24 00:27:54 +0200 |
|---|---|---|
| committer | Andi Albrecht <albrecht.andi@gmail.com> | 2011-07-24 00:27:54 +0200 |
| commit | 0e1cb7ac237cedeac30d26c2ccaa2ea34395b643 (patch) | |
| tree | a5d45f5b48221bd7278fd7da5db163e214a64e0c | |
| parent | 6c5a777bb6e144aeb0d41490148734ecd5ecb895 (diff) | |
| download | sqlparse-0e1cb7ac237cedeac30d26c2ccaa2ea34395b643.tar.gz | |
Update appengine app.
| -rw-r--r-- | extras/appengine/main.py | 2 | ||||
| -rw-r--r-- | extras/appengine/templates/index.html | 6 | ||||
| -rw-r--r-- | extras/appengine/templates/master.html | 11 |
3 files changed, 18 insertions, 1 deletions
diff --git a/extras/appengine/main.py b/extras/appengine/main.py index bd83ee6..5014cb9 100644 --- a/extras/appengine/main.py +++ b/extras/appengine/main.py @@ -36,7 +36,7 @@ logging.info('Loading %s, app version = %s', os.environ['DJANGO_SETTINGS_MODULE'] = 'settings' from google.appengine.dist import use_library -use_library('django', '1.0') +use_library('django', '1.2') # Fail early if we can't import Django. Log identifying information. import django diff --git a/extras/appengine/templates/index.html b/extras/appengine/templates/index.html index 57e7ed3..8313de4 100644 --- a/extras/appengine/templates/index.html +++ b/extras/appengine/templates/index.html @@ -89,6 +89,12 @@ <div class="dev">This software is in development.</div> + <div> + <a class="FlattrButton" style="display:none;" href="http://sqlformat.appspot.com/"></a> +<noscript><a href="http://flattr.com/thing/350724/SQLFormat-Online-SQL-formatting-service" target="_blank"> +<img src="http://api.flattr.com/button/flattr-badge-large.png" alt="Flattr this" title="Flattr this" border="0" /></a></noscript> + </div> + </div> <div class="clearfix"></div> </form> diff --git a/extras/appengine/templates/master.html b/extras/appengine/templates/master.html index ea1c662..8aabd72 100644 --- a/extras/appengine/templates/master.html +++ b/extras/appengine/templates/master.html @@ -13,6 +13,17 @@ <script type="text/javascript" src="/static/jquery.textarearesizer.compressed.js"></script> <script src="/static/script.js"></script> + <script type="text/javascript"> + /* <![CDATA[ */ + (function() { + var s = document.createElement('script'), t = document.getElementsByTagName('script')[0]; + s.type = 'text/javascript'; + s.async = true; + s.src = 'http://api.flattr.com/js/0.6/load.js?mode=auto'; + t.parentNode.insertBefore(s, t); + })(); +/* ]]> */ + </script> </head> <body> |
