Using Django in Eclipse
I am try开发者_JAVA技巧ing to use Django in Eclipse, but I have no idea how to import Django in Pydev project lists. The 'New Project' just has 'Pydev projec'.
Some help please Thank you
I believe you can import from file system and point tou your django project directory.
Check if you have the latest versions of both Pydev and Django. If you've installed Django properly, then it should be available under the 'Pydev' tab of 'New Project' as 'Pydev Django Project.' Otherwise, you can right-click on your project folder -> Pydev -> 'Set as Django project'.
Not sure if it is the Eclipse version problem like you said (I doubt it though). Another way you might want to try is to just create a new Pydev Project. Under the project name textbox, there is a section called project contents. Uncheck the "Use Default" and browse to your pydev directory and see what happen.
Maybe after this, you can try what rohanbk has mentioned to 'Set as Django project'.
A Django project can be imported as a PyDev project - after all, a Django project is a Python project. As rohanbk said you can convert it to a "Django Project" after successfully importing.
精彩评论