django-appengine 服务器未启动
我一直在尝试使用 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
或 管理.py 远程 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:
感谢您花时间查看此内容,如果您有任何建议或需要更多信息请询问。我对整个技术堆栈都很陌生,所以我可能错过了一些东西。
I've been trying to use Django-appengine to write a small web app, but I am stuck on setting up the development server. I have followed the tutorial as best a human can, and I have modified the test app's app.yaml to include my app ID, but nothing more:
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
When I run manage.py runserver
, or manage.py remote shell
, I get a traceback similar to this (in particular, this is from 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:
Thanks for taking the time to look at this, and if you have any advice or need more information please ask. I'm new to this entire technology stack, so I may have missed something.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
听起来您正在运行旧版本的 SDK。您是否尝试过更新SDK?
It sounds like you're running an old version of the SDK. Have you tried updating the SDK?
您是否尝试过删除:
它对我来说看起来很好,但这是上面的具体错误。
Have you tried removing:
It looks just fine to me, but that is the specific error above.