Hopefully this post will be one of many focusing on web development using python (django) and the latest technologies for deployment (veewee). These days it doesn’t really matter (in most cases) what platform you develop on (Windows, Linux, Mac). But if you are focusing on OpenSource development using Apache/Nginx, MySQL/Postgres and Python/PHP/Perl your solution should be deployed to a Linux environment. However, the reality is that most of use Windows or Mac computers. Secondly when it comes to using GUI based applications i still find Windows to be a better choice over Linux. If your comfortable with vim or e-macs then their isn’t much value using a tool like Eclipse.
Configuring your environment for web development is an involved process. So today we are just going to start with some basics by setting up a Python environment for Windows. First of all, I recommend getting a git account at GitHub or BitBucket. This will be important in future posts and is also part of the “big” picture.
Download and install the following:
Check out your Pyhton Install by opening a command prompt:
If this works, open Eclipse and set your workspace (use the default). Browse to the PyDev plugin at the Eclipse Marketplace or use the “drag to install button” below. Yes you can literally drag the image below to Eclipse and it will install PyDev:
Here is an example of using the feature on Eclipse Marketplace:
Configure the python install by clicking Window>Preferences>PyDev :
Select the “Python Interpreter” and click “New”. Set the “Interpreter Name” to something like “python27”. Browse to the python executable (python.exe) which should be located in “C:\Python27\. This could vary depending where you installed python. It will then prompt you to select the folders for the system path. Use the default settings and click OK. Click OK to exist the Preferences. The python environment almost ready to go.
Next post will focus creating a python which will be cloned from a public GitHub repository.