你必须确保django在你的PYTHONPATH中。
要进行测试,只需
import django在python shell中执行即可。应该没有输出:
ActivePython 2.5.1.1 (ActiveState Software Inc.) based onPython 2.5.1 (r251:54863, May 1 2007, 17:47:05) [MSC v.1310 32 bit (Intel)] on win32Type "help", "copyright", "credits" or "license" for more information.>>> import django>>>
如果你安装的Django通过
setuptools(
easy_install或与
setup.py附带
Django的),然后在你检查site-packages,如果
.pth文件(
easy-install.pth,django.pth,...)指向正确的文件夹。



