Importing existing git repos into Eclipse/PyDev

I’ve spent most of today trying to get either Anjuta or Eclipse/PyDev working with my django git repos for lapwing.os/website. And watching notch work on his LundumDare 48 submission.

I probably missed an easier method, but these were the steps;

  1. File > Import > Projects from Git
  2. Next, Add
  3. Browse, Select the directory with your git repo in, OK
  4. Search, OK
  5. Next, Import as General Project, Enter a project name if you wish
  6. In the Package Explorer pane, right click on the new project
  7. Pydev > Set as Django Project
  8. In the Package Explorer pane, right click on the project again
  9. Properties > PyDev - PYTHONPATH, in Source Folders click “Add source folder” and include the selected directory
  10. Properties > PyDev - Django and set where and are. You may need to copy from somewhere if isn’t part of your git repo

By default Eclipse/PyDev add .project and .pydevproject to the directory, so you may want to add them to your .gitignore file.