에 "Hello World"이 링크에있는 튜토리얼 : 내 helloworld.py 응용 프로그램을로드 할 https://developers.google.com/appengine/docs/python/gettingstartedpython27/helloworld구글 앱 엔진 파이썬 2.7 튜토리얼 내가 구글 앱 엔진 다음하고 오류
:
import webapp2
class MainPage(webapp2.RequestHandler):
def get(self):
self.response.headers['Content-Type'] = 'text/plain'
self.response.out.write('Hello, Udacity!')
app = webapp2.WSGIApplication([('/', MainPage)],
debug=True)
을 그리고
application: helloworld
version: 1
runtime: python27
api_version: 1
threadsafe: true
handlers:
- url: /.*
script: helloworld.app
Google App Engine Launcher를 사용하지 않고 콘솔이나 명령 줄에서 모든 것을하고 싶습니다.
dev_appserver.py --port=8888 helloworld
을 사용하여 helloworld 앱을 시작하려고하지만 본체가 AppConfigNotFoundError
이라고 불평합니다. 콘솔 출력
C:\Documents and Settings\XXX\Desktop\helloworld>dev_appserver.py --port=8888
helloworld
WARNING 2012-08-11 23:12:21,562 rdbms_mysqldb.py:74] The rdbms API is not avail
able because the MySQLdb library could not be loaded.
Traceback (most recent call last):
File "C:\Program Files (x86)\Google\google_appengine\dev_appserver.py", line 1
33, in <module>
run_file(__file__, globals())
File "C:\Program Files (x86)\Google\google_appengine\dev_appserver.py", line 1
29, in run_file
execfile(script_path, globals_)
File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\de
v_appserver_main.py", line 694, in <module>
sys.exit(main(sys.argv))
File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\de
v_appserver_main.py", line 582, in main
root_path, {}, default_partition=default_partition)
File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\de
v_appserver.py", line 3217, in LoadAppConfig
raise AppConfigNotFoundError
google.appengine.tools.dev_appserver.AppConfigNotFoundError
이것이 경로 문제일까요? 내 helloworld.py
및 app.yaml
은 내 데스크톱의 폴더에 있지만 Google 앱 엔진 디렉토리에는 없습니다.
어떻게이 오류를 해결할 수 있습니까? 어떤 제안이라도 감사드립니다!
참고 : 파이썬 2.7을 사용 중입니다. 2.5. 당신이 dev_appserver.py
를 호출 할 때