|
Part 2 : Create your Eclipse Project
Step 1: Create a New PyDev Django Project
- Go to File -> New -> Project...
- Select PyDev -> PyDev Django Project
- Give a project name, for this example we chose GridClient,
- Project Type: Jython,
- Grammar version: 2.5,
- Select Please configure an interpreter...
- Select New...
- Give the Name Jython 2.5.2
- For the Executable browse to <the Jython distribution>/jython.jar and Select OK
- In the next window, select OK
- The PYTHONPATH is configured, press OK
- Select Jython 2.5.2 as the interpreter and select Add project directory to the PYTHONPATH
- Ignore this step and press Next
- Set up the PostgreSQL database connection
- Select the doj.backends.zxjdbc.postgresql engine
- Give the database name
- Give the PostgreSQL admin username
- Give the PostgreSQL admin password
- It will complain that Python is not configured, since we only configured Jython, Select Don't ask again
- Open the PyDev perspective, if asked
- The project has been created
Step 2: Create Django Application
- Right click the project folder and select Django -> Create Application
- Give the Application name, for this example we chose thewebapp
- The Application has been created
Step 3: Download and Set up the Configuration Files
- Download the Configuration Files from http://software.cagrid.org/knowledgecenter/tutorials/clientguide/DjangoJythonClient_conf.zip

- Unzip the file, rename the directory to conf
- place the conf directory in the project like shown below
Step 4: Download and Set up the Library
- Download all the jars needed for the project from http://software.cagrid.org/knowledgecenter/tutorials/clientguide/DjangoJythonClient_lib_all.zip

- Unzip the file and place it in any directory
- In Eclipse right click the GridClient project folder and select Properties
- Select PyDev - PYTHONPATH on the left menu
- Select the External Libraries Tab
- Select Add zip/jar/egg
- Browse to the library folder and select all the files and press Open
- All the jars have been added to the project, click OK
|