【发布时间】:2013-06-03 21:48:10
【问题描述】:
将包 GAE 1.8.0.dgm 下载到我的 Mac OS 10.7 后,我尝试了来自 google 的示例,当我导入时:
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
我正在交互式控制台和应用程序中尝试这个
我需要安装其他包吗?
【问题讨论】:
-
django 安装了吗?通过从 python shell 执行
import django来验证这一点 -
另外,验证 python 在路径中:stackoverflow.com/questions/312549/no-module-named-django-core
-
我需要预装 Django 吗?安装 GAE 后?
-
Google 的哪个例子?
标签: python django google-app-engine