2011-07-18 107 views
1

我一直在嘗試使用Django-appengine來編寫一個小型的網絡應用程序,但我堅持設置開發服務器。我按照最佳人就可以了,我已經修改了測試應用程序的app.yaml中,包括我的應用程序ID的教程,但僅此而已:django-appengine服務器不啓動

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: 

感謝您抽出寶貴時間來看看這個,如果您有任何意見或需要更多信息,請詢問。我是整個技術堆棧的新手,所以我可能錯過了一些東西。

+3

聽起來你正在運行SDK的舊版本。你有沒有嘗試過更新SDK? –

回答

1

這聽起來像你正在運行一個老版本的SDK。你有沒有嘗試過更新SDK?

+0

就是這樣!我安裝了新的SDK,但我沒有刪除我的磁盤上的以前的版本。 django-nonrel正在查找並使用它。謝謝! –

0

你有沒有試着刪除:

builtins: 
- remote_api: on 

它看起來蠻好我,但高於特定的錯誤。

乾杯, 雅各

+0

我剛剛嘗試過,並且我接受了同樣的錯誤,除了最後一行聲明'google.appengine.ext.builtins.InvalidBuiltinName:default不是有效內置處理程序的名稱。 可用的處理程序是:' –