Instructions for deploying a full-fledged environment for joint remote development with Django in Windows. For absolute beginners.
The article does not claim to be universal, but the article is a workable instruction on how to develop the environment “from scratch” to the stage “we write the first line of code”.The comments accept tips and recommendations for improving the instructions.
1. Install and configure Python.
To install Python, it's clear, first
download from http://python.org/download/, then follow the installer’s instructions.
An optional, but recommended step is to set the PATH environment variable, this is necessary so that you do not have to type extra control words on the command line when managing a project.
So, the PATH variable can be found (for Win Vista) through the Computer >> Properties >> Advanced system parameters >> Environment variables, in the “System variables” window, find the PATH variable and, not replace, but ADD (!) The variable “ C: \ Python25; C: \ Python25 \ Scripts; C: \ Python25 \ lib \ site-packages \ django \ bin ",
where "C: \ Python25" is the root directory of the installed Python. ')
2. Installing Django.
Here, again, first
Download Django from http://www.djangoproject.com/download/ in one of the ways presented on the page.
If it was decided to download the official version (the first way), then unpacking the archive, go to the root directory of the unpacked Django in the command line, then execute the command “setup.py install” (if the environment variable from the first step was not set , then “python setup.py install”).
The necessary tools are deployed, now it's up to the development environment.
3. Installing Eclipse.
Everything is simple here, you can download Eclipse from http://www.eclipse.org/downloads, the installation will not be difficult.
4. Install and configure PyDev.
Having Eclipse installed on our hands, we can install a plugin for it to develop in Python - his name is PyDev.
Launch Eclipse and from the menu select Help >> Software Updates >> Find and Install ... (Help >> Software Update >> Find and Install ...).
Select: Search for new features to install Click the [New Remote Site ...] button and enter the following network address: http://pydev.sourceforge.net/updates/.
Select the newly added site by checking the box next to it, and click the [Finish] button.
Select the PyDev extension in the list of kits to install and click the [Finish] button. Wait until the selected components are downloaded and installed in the system.
Now you need to configure PyDev.
Select Window >> Preferences from the menu (Window >> Preferences ...) then in the tree on the left select PyDev >> Interpreter - Python.
At the top of the Python interpreters panel, click [New ... (Create)] and specify the full path to the installed Python (python.exe or python for Linux).
Next, in the System PYTHONPATH panel, click [New folder] and specify the path to the Django root folder.
Well, do not forget to press OK.
Next are optional items for setting up a version control system and creating a repository in the WEB for remote collaborative development.
5. Creating a repository (on the hosting of google projects).
To do this, just for everything, you need to fill out a questionnaire at http://code.google.com/hosting/createProject, being logged in with your Gmail account.
6. Install and configure SubVersion.
To work with SubVersion, or version control system, for Eclipse there is a plug-in SubEclipse. To install it
From the Eclipse menu, select Help >> Software Updates >> Find and Install ... (Help >> Software Update >> Find and Install ...).
Select: Search for new features to install.
Click the [New Remote Site ...] button and enter the following network address: http://subclipse.tigris.org/update_1.4.x
Now the system must be configured to the repository created in step five. For this,
selecting the SubEclipse perspective (Window >> Open perspective >> Other ... >> SVN Repository Exploring),
In the context menu of the SVN Repositories panel, select New ... >> Repositoty Location ... and insert the repository address in the URL field.
The repository address is visible on the page of your project on the hosting of Google projects, in the Source tab.This is a string like "https: // <project name> .googlecode.com / svn / trunk /".
Next, the system will ask for a username and password.
The login here is the name of the account in Gmail, and you will need to generate the password by clicking on the link "When prompted, enter your generated googlecode.com password.".It is located on the same page of your project, in the same Source tab.