2013-06-03 46 views
2

下載包GAE 1.8.0.dgm我的Mac OS 10.7後,我想一個例子從谷歌,和IM導入此時:GAE錯誤django.core.exception

from google.appengine.ext.db import djangoforms 

我得到這個錯誤:

Traceback (most recent call last): 
File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/devappserver2/python/request_handler.py", line 156, in handle_interactive_request 
exec(compiled_code, self._command_globals) 
File "<string>", line 8, in <module> 
File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/ext/db/djangoforms.py", line 97, in <module> 
import django.core.exceptions 
ImportError: No module named django.core.exceptions 

我在交互式控制檯和應用嘗試這種自己

我需要安裝其他的包?

+1

是否安裝了django?驗證通過從python shell執行'import django' – karthikr

+1

是的安裝 –

+1

另外,驗證python是否在路徑中:http://stackoverflow.com/questions/312549/no-module-named-django-core – karthikr

回答

3

添加這是你的你的app.yaml中應當工作:

libraries: 
- name: django 
    version: latest 

this如何使用第三方庫,並鏈接到了。