用Eclipse设置Django - “Django not found” [英] Setting up Django with Eclipse - "Django not found"
问题描述
当我尝试验证Django是通过命令行集成时,它有效。
>>> import django
>>> print django.get_version()
1.2.5
我有两个python安装,2.7和3.2,我确定我从Eclipse(和命令行)使用2.7。我做错了什么?
如果在安装django之前添加了python解释器,可以得到此错误消息。从eclipse中删除python解释器并重新添加。 Eclipse会做某些缓存/搜索。这解决了同样的问题。
I'm trying to setup Django with Eclipse. Right now I'm creating a new Pydev Django project, and getting "Django not found" error message.
When I try to verify Django is integrated via the command line, it works.
>>> import django
>>> print django.get_version()
1.2.5
I have exactly two python installations, 2.7 and 3.2, and I'm sure I'm using 2.7 from Eclipse (and the command line). What am I doing wrong?
If you added the python interpreter before installing django, you can get this error message. Remove the python interpreter from eclipse and add it again. Eclipse will do some caching/searching of some sort. This solved my same problem.
这篇关于用Eclipse设置Django - “Django not found”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!