I have installed eclipse and pydev and django. When I open the command line I see:
我已经安装了eclipse和pydev和django。当我打开命令行,我看到:
C:\Users>python
Python 2.7.3 (default, Apr 10 2012, 23:31:26) [MSC v.1500 32 bit (Intel)] on win
32
Type "help", "copyright", "credits" or "license" for more information.
>>> import django
>>> django.VERSION
(1, 4, 2, 'final', 0)
>>>
Therefore django is correctly installed.
因此,django是正确安装的。
When I create a new django project in eclipse I get:
当我在eclipse中创建一个新的django项目时,我得到:
an empty project with no manage.py ect.
一个没有管理的空项目。py等。
I want to have a full configed django project when I create one in eclipse!
我希望在eclipse中创建一个完整的configed django项目!
Whats wrong with my Python installation?
我的Python安装有什么问题?
I appreaciate your answer!!!
我appreaciate答案! ! !
UPDATE:
更新:
Right now my pythonpath looks like this:
现在我的pythonpath是这样的:
2 个解决方案
#1
1
There are a couple of settings you need to ensure you have before the Django integration will work, (also, the pydev integration requires your project to be in a src folder before things like autocomplete will work afaik.)
在Django集成工作之前,您需要确保有两个设置(而且,pydev集成要求您的项目在autocomplete之类的东西能够正常工作之前,必须放在src文件夹中)。
Two good guides for setting up PyDev and integrating Django:
建立PyDev和集成Django的两个良好指南:
PyDev中设置
Django的PyDev中设置
#2
0
Nothing important, but if you've install Eclipse just to code Django websites, you may have a look at Aptana Studio, which is an Eclipse IDE with PyDev and extra stuff. Not much configuration needed, might be good for later.
没有什么重要的,但是如果您安装Eclipse只是为了编写Django网站的代码,那么您可以查看Aptana Studio,它是一个带有PyDev和其他内容的Eclipse IDE。不需要太多的配置,可能以后会更好。
#1
1
There are a couple of settings you need to ensure you have before the Django integration will work, (also, the pydev integration requires your project to be in a src folder before things like autocomplete will work afaik.)
在Django集成工作之前,您需要确保有两个设置(而且,pydev集成要求您的项目在autocomplete之类的东西能够正常工作之前,必须放在src文件夹中)。
Two good guides for setting up PyDev and integrating Django:
建立PyDev和集成Django的两个良好指南:
PyDev中设置
Django的PyDev中设置
#2
0
Nothing important, but if you've install Eclipse just to code Django websites, you may have a look at Aptana Studio, which is an Eclipse IDE with PyDev and extra stuff. Not much configuration needed, might be good for later.
没有什么重要的,但是如果您安装Eclipse只是为了编写Django网站的代码,那么您可以查看Aptana Studio,它是一个带有PyDev和其他内容的Eclipse IDE。不需要太多的配置,可能以后会更好。