13
내 앱이 개발 중인지 여부를 프로그램 적으로 결정해야하므로 다양한 상수 및 메소드에 대한 샌드 박스 값을 제공 할 수 있습니다.앱이 로컬 Python Development Server에서 실행되고 있는지 확인하는 방법은 무엇입니까?
뭔가 같은 :
if app.development: # Live mode
FREEBASE_USER = "spam123"
FREEBASE_PSWD = "eggs123"
FREEBASE = freebase
else: # Sandbox mode
FREEBASE_USER = "spam"
FREEBASE_PSWD = "eggs"
FREEBASE = freebase.sandbox
http://stackoverflow.com/questions/1916579/in-python-how-can-i-test-if-im-in-google-app- engine-sdk – hyperslug