I created a Django project with just a text editor and the command line, now I have installed Aptana Studio but I cannot import that project. I can create a new django project, pydev is correctly installed and it works.
In Aptana, I tried Import Projects, but it doesnt recognize my project's root directory "No projects are found to import". before replacing settings, models, views, etc,.. with the contents of my project (what I dont like), I want to ask:
Is there a better way to import the project??
You can find a more complete answer Here.
It's a bit dirty but you can do the following. Create two files in your project directory called .project and .pydevproject.
.project should contain:
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>YOUR_PROJECT_NAME</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.python.pydev.PyDevBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.python.pydev.pythonNature</nature>
</natures>
</projectDescription>
and .pydevproject should contain:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?eclipse-pydev version="1.0"?>
<pydev_project>
<pydev_pathproperty name="org.python.pydev.PROJECT_SOURCE_PATH">
<path>\PATH\TO\THE\PROJECT</path>
</pydev_pathproperty>
<pydev_property name="org.python.pydev.PYTHON_PROJECT_VERSION">python 2.6</pydev_property>
<pydev_property name="org.python.pydev.PYTHON_PROJECT_INTERPRETER">Default</pydev_property>
<pydev_pathproperty name="org.python.pydev.PROJECT_EXTERNAL_SOURCE_PATH">
<path>\PATH\TO\EXTERNAL\SOURCES\IF\USED</path>
</pydev_pathproperty>
</pydev_project>
when you've got those two files in your project dir you can use Import>Existing Projects into Workspace