简体   繁体   中英

Pydev does not integrate Django in eclipse?

I have installed eclipse and pydev and django. When I open the command line I see:

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.

When I create a new django project in eclipse I get:

在此处输入图片说明

an empty project with no manage.py ect.

I want to have a full configed django project when I create one in eclipse!

Whats wrong with my Python installation?

I appreaciate your answer!!!

UPDATE:

Right now my pythonpath looks like this:

在此处输入图片说明

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.)

Two good guides for setting up PyDev and integrating Django:

PyDev setup

PyDev Django setup

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM