django-appengine服务器无法启动

时间:2011-07-18 23:00:41

标签: python google-app-engine django-nonrel djangoappengine

我一直在尝试使用Django-appengine来编写一个小型的Web应用程序,但我仍然坚持设置开发服务器。我已经按照人类最好的方式遵循了教程,并且我修改了测试应用程序的app.yaml以包含我的应用程序ID,但仅此而已:

application: appidgoeshere
version: 1
runtime: python
api_version: 1

builtins:
- remote_api: on

inbound_services:
- warmup

handlers:
- url: /_ah/queue/deferred
  script: djangoappengine/deferred/handler.py
  login: admin

- url: /_ah/stats/.*
  script: djangoappengine/appstats/ui.py

- url: /media/admin
  static_dir: django/contrib/admin/media
  expiration: '0'

- url: /.*
  script: djangoappengine/main/main.py

当我运行manage.py runservermanage.py remote shell时,我会得到与此类似的追溯(特别是来自runserver):

Traceback (most recent call last):
  File "C:\Users\Jake\Documents\Eclipse Projects\appnamehere\manage.py", line 11, in <module>
    import settings
  File "C:\Users\Jake\Documents\Eclipse Projects\appnamehere\settings.py", line 4, in <module>
    from djangoappengine.settings_base import *
  File "C:\Users\Jake\Documents\Eclipse Projects\appnamehere\djangoappengine\settings_base.py", line 6, in <module>
    setup_env()
  File "C:\Users\Jake\Documents\Eclipse Projects\appnamehere\djangoappengine\boot.py", line 65, in setup_env
    setup_project()
  File "C:\Users\Jake\Documents\Eclipse Projects\appnamehere\djangoappengine\boot.py", line 117, in setup_project
    from .utils import have_appserver, on_production_server
  File "C:\Users\Jake\Documents\Eclipse Projects\appnamehere\djangoappengine\utils.py", line 12, in <module>
    appconfig, unused = dev_appserver.LoadAppConfig(PROJECT_DIR, {})
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\dev_appserver.py", line 3489, in LoadAppConfig
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\dev_appserver.py", line 3344, in ReadAppConfig
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\api\appinfo_includes.py", line 47, in Parse
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\api\appinfo_includes.py", line 81, in _MergeBuiltinsIncludes
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\api\appinfo_includes.py", line 125, in _ResolveIncludes
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\api\appinfo_includes.py", line 177, in _ConvertBuiltinsToIncludes
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\ext\builtins\__init__.py", line 88, in get_yaml_path

google.appengine.ext.builtins.InvalidBuiltinName: remote_api is not the name of a valid builtin handler.
Available handlers are:

感谢您花时间查看此内容,如果您有任何建议或需要更多信息,请询问。我是整个技术堆栈的新手,所以我可能错过了一些东西。

2 个答案:

答案 0 :(得分:1)

听起来你正在运行旧版本的SDK。您是否尝试过更新SDK?

答案 1 :(得分:0)

您是否尝试过删除:

builtins:
- remote_api: on

对我来说看起来很好,但这是上面的具体错误。