I had written a tutorial to install django in eclipse with PyDev on windows 8. At that time, Django was advised to run over Python27. Another reason was Pillow library was not available for python3. Now, they are, so time to change it!
Well, Djanog 1.5 or later is now compatible with Python33, as you can check here: https://docs.djangoproject.com/en/dev/topics/python3/
I decided to use the 64bits version of python33 in my Windows 8.1, as my production Linux, where my application is running is a Linux 64bits. As you may know, the Linux world is much easier than windows flavors, that is why I am writing this post.
Its is pretty much the same as the last one.
First of all, you have to install Java JDK and Eclipse. The eclipse edition I use is the Kepler Java EE developers 64bits.
Now you can install Python. It is a very good idea first unistall other python versions if you have some and delete the python folder by hand. You can donwload python33 64bit msi from python website: http://www.python.org/ftp/python/3.3.3/python-3.3.3.amd64.msi
In windows 8.1, the python msi only put the path for c:\python33 I had to put myself the one for the scrips. I delete all old python27 path I had.
Installing things on python usually involves running python scripts. All we do is download the scripts and run them with the python interpreter. I like to save all these downloaded script straight in
then run them from there, using the admin command prompt.
To install Django on windows, the best way is using pip, as they advise on Django website.
Before install pip, you have to install the setuptools. In these days, most of things you have to install in python use it.
Download the script from
and run it as
To install pip, you have to download a python script from pip website.
and then run
After that we should be able to install Django typing
pip install django
That is it. Django is installed. You should now be able to import django from python interpreter.
Now, open Eclipse, Help -> Eclipse Market place, search for PyDev and install it.
Then, go to Windos->preferences select PyDev and Python Interpreter
Press the button Auto Config. The options come checked already, but just make sure the folder site-packages are checked.
That is it. You can start coding django apps on Eclipse.
To use the admin facilities, you have to install the DB driver you are using. In my case, it is MariaDB, which should be MySQL like. I could not find any windows ready to go package.
I have found this:
It does not install straight forward. After download the zip from GitHub, and decompressing, there is file on the root folder, called:
You have to open this file and edit some lines.
There is a variable called mysql_root. I had to point this to my MariaDB folder.
The script could find any register location. there is file called “site.cfg”, it did not work even adding the key to the register. I just end up adding manually my MariaDB path in that line.
mysql_root='C:/Program Files/MariaDB 5.5'
And the include dir for the MySQL includes as well.
My MariaDB include folder has a diferent path.
include_dirs = [ os.path.join(mysql_root, r'include/mysql') ]
Your script is not ready just yet. You have to change one environment variable which C compiler to use. In my case, I use VS2012, but python looks for VS2010. All you need to do is install VS2010 Express or just run
It is a kind o “kludge”, but it worked for me.
After that, you go to the driver folder and run
python setup.py install