
h1. Part 2 : Create your Eclipse Project
----
{cagridroundpanel}
{pre:class=cagridheaderfont}Table of Contents{pre}
{toc:outline=false|exclude=Part 2 : Create your Eclipse Project|style=bullets}
{cagridroundpanel}
h3. Step 1: Create a New PyDev Django Project
# Go to *File \-> New \-> Project...*
# Select *PyDev \-> PyDev Django Project*
{gallery:include=Screen shot 2011-11-07 at 3.52.39 PM.png}
# Give a project name, for this example we chose GridClient,
## Project Type: *Jython*,
## Grammar version: *2.5*,
## Select *Please configure an interpreter...*
{gallery:include=Screen shot 2011-11-14 at 1.45.39 PM.png}
# Select *New...*
{gallery:include=Screen shot 2011-11-14 at 1.49.59 PM.png}
# Give the Name *Jython 2.5.2*
# For the Executable browse to <the Jython distribution>/jython.jar and Select *OK*
{gallery:include=Screen shot 2011-11-14 at 1.51.52 PM.png}
# In the next window, select *OK*
# The PYTHONPATH is configured, press *OK*
{gallery:include=Screen shot 2011-11-14 at 1.55.45 PM.png}
# Select Jython 2.5.2 as the interpreter and select *Add project directory to the PYTHONPATH*
{gallery:include=Screen shot 2011-11-08 at 11.01.08 AM.png}
# Ignore this step and press *Next*
{gallery:include=Screen shot 2011-11-08 at 11.01.31 AM.png}
# 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
{gallery:include=Screen shot 2011-11-08 at 11.02.41 AM.png}
# 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
{gallery:include=Screen shot 2011-11-08 at 11.03.54 AM.png}
h3. Step 2: Create Django Application
# Right click the project folder and select *Django \-> Create Application*
{gallery:include=Screen shot 2011-11-08 at 11.06.02 AM.png|border=1}
# Give the Application name, for this example we chose thewebapp
{gallery:include=Screen shot 2011-11-08 at 11.06.56 AM.png|border=1}
# The Application has been created
{gallery:include=Screen shot 2011-11-08 at 11.07.16 AM.png|border=1}
h3. 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
{gallery:include=Screen shot 2011-11-08 at 11.09.45 AM.png|border=1}
h3. 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*
{gallery:include=Screen shot 2011-11-08 at 11.10.58 AM.png|border=1}
# Browse to the library folder and select all the files and press *Open*
# All the jars have been added to the project, click *OK*
{gallery:include=Screen shot 2011-11-08 at 11.12.16 AM.png|border=1}
{scrollbar}