我一直在尝试使用 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 runserver
, 或manage.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:
感谢您花时间查看此内容,如果您有任何建议或需要更多信息,请询问。我是整个技术堆栈的新手,所以我可能错过了一些东西。