Import existing Django project into Eclipse with PyDev


**Here the existing Django project means the project is not created within the eclipse environment

1. Create two files within the current Django project: .project file and .pydevproject. Make sure you make the appropriate changes.

.project contents (must replace the MyProject with the project name)



    MyProject
   
   
   
   
       
            org.python.pydev.PyDevBuilder
           
           
       
   
   
        org.python.pydev.pythonNature
   



.pydevproject contents (must replace the path (/MyProject/src) with the actual folders to be in the PYTHONPATH)

In most situtaions /MyProject/src will be replaced with the Django project name.




    Default
    python 2.7
   
   
   
        /MyProject/src
   



2. Open eclipse and use import>>Existing project into Workspace. In the next screen, the root directory is your current django project root.


No comments:

Post a Comment

Datatable static image not found on the server

When you use ```datatables.min.css``` and ```datatables.min.js``` locally, instead of datatables CDN, you may have encountered that ```sort...