Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6147121
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T19:03:32+00:00 2026-05-23T19:03:32+00:00

On my Google AppEngine (GAE) server, I’d like to do something like this: if

  • 0

On my Google AppEngine (GAE) server, I’d like to do something like this:

if (thisIsTheDefaultServer)
{
    // behave normally
}
else
{
    // Accept special test-commands, give extra output, etc.
}

is there a way for the server code to determine if it’s the current default version?

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T19:03:33+00:00Added an answer on May 23, 2026 at 7:03 pm

    I remember hearing the Google App Engine team mention an API to retrieve anything from the dashboard. Unfortunately, I cannot find it at the moment. I think it might have been in this talk: http://www.google.com/events/io/2011/sessions/life-in-app-engine-production.html

    I did find one document referring on how to get this information exactly in Java. I did not have enough time to find the Python version.

    For Java (http://code.google.com/appengine/docs/java/javadoc/com/google/appengine/api/utils/SystemProperty.html):

     if (SystemProperty.environment.value() == SystemProperty.Environment.Value.Production) {
       // do something that's production-only
     }
     String version = SystemProperty.version.get();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

According to this: http://code.google.com/appengine/docs/whatisgoogleappengine.html it seems that GAE only uses Datastore to store data,
So I've got this server application running on Google AppEngine that I want to
I'm building application on Google AppEngine with Java (GAE/J) and all my data will
The Google AppEngine development server simulates Google's backend database with an embedded database. It
look this simple django on gae : http://code.google.com/p/google-app-engine-samples/source/browse/trunk/django_example and this is my code: DIRNAME
To learn GWT and Google AppEngine (GAE) I'm trying to create a simple application
Currently I'm building my Java Web Application on Google AppEngine (GAE), but due to
I've been using Pydev/Eclipse to develop Google App Engine (GAE) applications but I've been
I am using google's appengine api from google.appengine.api import urlfetch to fetch a webpage.
I'm using Google appengine for developing an web application that is meant to be

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.