开发者

Django-nonrel and GAE - Error - Unexpected attribute 'builtins'

I'm trying to run django-testapp from allbuttonpressed which uses Django-nonrel.

When I run manage.py from django-testapp it gives me an error saying that

C:\Projects\Goog\django-testapp>manage.py
Traceback (most recent call last):
  File "C:\Projects\Goog\django-testapp\manage.py", line 4, in <module>
    import settings # Assumed to be in the same directory.
  File "C:\Projects\Goog\django-testapp\settings.py", line 4, in <module>
    from djangoappengine.settings_base import *
  File "C:\Projects\Goog\django-testapp\djangoappengine\settings_base.py", line 6, in <module>
    setup_env()
  File "C:\Projects\Goog\django-testapp\djangoappengine\boot.py", line 64, in setup_env
    setup_project()
  File "C:\Projects\Goog\django-testapp\djangoappengine\boot.py", line 114, in setup_project
    from .utils import have_appserver, on_production_server
  File "C:\Projects\Goog\django-testapp\djangoappengine\utils.py", line 12, in <module>
    appconfig, unused = dev_appserver.LoadAppConfig(PROJECT_DIR, {})
  File "D:\Program Files (x86)\Google\google_appengine\google\appengine\tools\dev_appserver.py", line 3440, in LoadAppConfig
  File "D:\Program Files (x86)\Google\google_appengine\google\appengine\tools\dev_appserver.py", line 3295, in ReadAppConfig
  File "D:\Program Files (x86)\Google\google_appengine\google\appengine\api\appinfo.py", line 444, in LoadSingleAppInfo
  File "D:\Program Files (x86)\Google\google_appengine\google\appengine\api\yaml_listener.py", line 218, in Parse
    self._HandleEvents(self._GenerateEventParameters(stream, loader_class))
  File "D:\Program Files (x86)\Google\google_appengine\google\appengine\api\开发者_StackOverflow社区yaml_listener.py", line 169, in _HandleEvents
    raise yaml_errors.EventError(e, event_object)
google.appengine.api.yaml_errors.EventError: Unexpected attribute 'builtins' for object of type <class 'google.appengine.api.appinfo.AppInfoExternal'>.
  in "C:\Projects\Goog\django-testapp\app.yaml", line 7, column 1

I'm using latest 1.4 GAE SDK

Anyone knows if this is an issue with the Django-nonrel or something specific to my setup.

app.yaml file:

application: ctst
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: /media/admin
  static_dir: django/contrib/admin/media
  expiration: '0'

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


You have an error in your app.yaml file. Try to reset it and run application.


You're not actually using the latest SDK. Possibly you have multiple SDKs installed, and Django is using a different one. Make sure you update the one in D:\Program Files (x86)\Google\google_appengine to the latest version.


If you have a file called index.yalm and other app.yalm, try delete index.yalm and test it. I have same problem and I've resolved.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜