Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 906edca835
Fetching contributors…

Cannot retrieve contributors at this time

20 lines (15 sloc) 0.545 kb
"""App Engine settings.
"""
import os
from google.appengine.api import app_identity
try:
APP_ID = app_identity.get_application_id()
except AttributeError:
# this is probably a unit test
APP_ID = None
# app_identity.get_default_version_hostname() would be better here, but
# it doesn't work in dev_appserver since that doesn't set
# os.environ['DEFAULT_VERSION_HOSTNAME'].
HOST = os.getenv('HTTP_HOST')
SCHEME = 'https' if (os.getenv('HTTPS') == 'on') else 'http'
DEBUG = os.environ.get('SERVER_SOFTWARE', '').startswith('Development')
Jump to Line
Something went wrong with that request. Please try again.