Access Keys:
Skip to content (Access Key - 0)

Knowledgebase

Part 2 : Create your Eclipse Project


Table of Contents

Step 1: Create a New PyDev Django Project

  1. Go to File -> New -> Project...
  2. Select PyDev -> PyDev Django Project
  3. Give a project name, for this example we chose GridClient,
    1. Project Type: Jython,
    2. Grammar version: 2.5,
    3. Select Please configure an interpreter...
  4. Select New...
  5. Give the Name Jython 2.5.2
  6. For the Executable browse to <the Jython distribution>/jython.jar and Select OK
  7. In the next window, select OK
  8. The PYTHONPATH is configured, press OK
  9. Select Jython 2.5.2 as the interpreter and select Add project directory to the PYTHONPATH
  10. Ignore this step and press Next
  11. Set up the PostgreSQL database connection
    1. Select the doj.backends.zxjdbc.postgresql engine
    2. Give the database name
    3. Give the PostgreSQL admin username
    4. Give the PostgreSQL admin password
  12. It will complain that Python is not configured, since we only configured Jython, Select Don't ask again
  13. Open the PyDev perspective, if asked
  14. The project has been created

Step 2: Create Django Application

  1. Right click the project folder and select Django -> Create Application
  2. Give the Application name, for this example we chose thewebapp
  3. The Application has been created

Step 3: Download and Set up the Configuration Files

  1. Download the Configuration Files from http://software.cagrid.org/knowledgecenter/tutorials/clientguide/DjangoJythonClient_conf.zip
  2. Unzip the file, rename the directory to conf
  3. place the conf directory in the project like shown below

Step 4: Download and Set up the Library

  1. Download all the jars needed for the project from http://software.cagrid.org/knowledgecenter/tutorials/clientguide/DjangoJythonClient_lib_all.zip
  2. Unzip the file and place it in any directory
  3. In Eclipse right click the GridClient project folder and select Properties
  4. Select PyDev - PYTHONPATH on the left menu
    1. Select the External Libraries Tab
    2. Select Add zip/jar/egg
  5. Browse to the library folder and select all the files and press Open
  6. All the jars have been added to the project, click OK
Last edited by
Joe George (434 days ago)
Adaptavist Theme Builder Powered by Atlassian Confluence