I have a google app engine application with 2 versions (master & staging) that both run on the same datastore but have different codebases.
According to my stackoverflow searches and the gae python docs the function modules.get_current_version_name() should return the version name, in my case 'staging' or 'master'.
When I call it however I get a KeyError exception. It seems that when performing the actual dict lookup in os.environ or something, it tries to get a non-existing key 'CURRENT_VERSION_ID'.
Are there any steps I have to take to set up that environment variable? Is this still the correct way to get an app/modules version, or are there other options?