Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot run as "PyDev: Django" in Eclipse

When creating a new Django project in Eclipse I can run the server by running the project as "PyDev: Django" like in the following screenshot:

Run As --> PyDev: Django

I've recently forked a Django project from GitHub, added it to Eclipse and set it as a Django project. The problem is that I don't have the option to run the project as "PyDev: Django" when trying to do so in Eclipse:

Run As --> Run Configurations

How can I fix this?

like image 452
snakile Avatar asked Oct 12 '12 15:10

snakile


1 Answers

I had the same issue after importing an existing project in Eclipse.

Here is how I solved it:

  • set your directory to Django project using "PyDev" -> "set as Django project"
  • use the same "PyDev" menu and set it "as a PyDev project".

The last command will configure the pydev nature of the project. You should now have the "PyDev: Django" and "Python unit-test" options to the "Run as" menu.

like image 123
Traian Avatar answered Oct 03 '22 21:10

Traian