Wednesday, May 18, 2011

Django development

Setting up a development is as important as starting with the development itself, Django development can be made easier with setting it up to be used with eclipse and pydev.

Pydev already comes with an option for creation of django projects, all that needs to be done is , download django from site and install it.

The step for installing and checking are :
1. unzip the downloaded file.
2. python setup.py install

To test if django has been setup correctly , just try this from console/command line

open python interactive shell, then type the following commands

1. import django
2. print django.get_version()

If you get some output about the installed django version you are good to go.

Now with both django and eclipse+pydev installed only 1thing remains to be done, configuring eclipse to use the recently installed django.

To achieve this ,from the eclipse menu go to.

windows->preference->pydev->interpreter-python
In the library tab click on the new button and point to the installed django root folder.

This will get you started.

Regards,
Ishan

No comments:

Post a Comment