Google AppEngine App Version

Is it possible to fetch the current application version programmatically for use in urls with far future expires header?

For example:

<link rel="stylesheet" href="app.js?v=1.23" />

Should be automatically updated to:

<link rel="stylesheet" href="app.js?v=1.24" />

In order to do so I need to get the version.

Answers


From [http://code.google.com/appengine/docs/python/theenvironment.html][1]

from google.appengine.ext import webapp
import os

class PrintEnvironmentHandler(webapp.RequestHandler):
  def get(self):
    for name in os.environ.keys():
      self.response.out.write("%s = %s<br />\n" % (name, os.environ[name]))


  [1]: http://code.google.com/appengine/docs/python/theenvironment.html

Need Your Help

iPhone : Unable to display Arabic fonts properly. How to use glyphs to display it?

iphone objective-c ios cocoa-touch

I want to display arabic fonts(me_quran fonts) in my app. I have arabic text in my database.

How do I get VirtualBox 4.3 to allow internal private networks from Vagrant

virtualbox vagrant

The Vagrant documentation states that internal networks can be configured thus: