用Eclipse设置Django - “Django not found” [英] Setting up Django with Eclipse - "Django not found"

查看:167
本文介绍了用Eclipse设置Django - “Django not found”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用Eclipse设置Django。现在我正在创建一个新的Pydev Django项目,并获得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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆