Install Django App Using Python2.7 on Site5
Make sure that now you are in the home directory
cd ~/
Then download python2.7, django1.3, flup, and mysqlpython with the following command
wget http://python.org/ftp/python/2.7.2/Python-2.7.2.tgz
wget http://www.djangoproject.com/download/1.3/tarball/
wget http://www.saddi.com/software/flup/dist/flup-1.0.2.tar.gz
wget http://iweb.dl.sourceforge.net/project/mysql-python/mysql-python/1.2.1_p2/MySQL-python-1.2.1_p2.tar.gz
Unpack all zip files you've already dowloaded
tar xzvf Python-2.7.2.tgz
tar xzvf Django-1.3.tar.gz
tar xzvf flup-1.0.2.tar.gz
tar xzvf MySQL-python-1.2.1_p2.tar.gz
Then install python 2.7.2
cd Python-2.7.2
./configure --prefix=/home/(username)/local/
make
make install
Don't forget to change (username) to your site5 user account
Once you finnish you need to edit your $PATH in .bash_profile
nano .bash_profile
You are now using nano text editor on unix shell let include this PATH to the file
=========== .bash_profile ===============
# User specific environment and startup programs
PATH=$HOME/local/bin:$PATH:$HOME/bin
========================================
control o control x to save and exit the file
let type the following command and see what happen
python --version
It would return
2.7.2
Next Install Django
cd ~/Django-1.3
python setup.py install
Then intall MySQL python
cd ~/MySQL-python-1.2.1_p2
python setup.py install
Finally let install flup
cd ~/flup-1.0.2
cp -r flup ~/local/lib/python2.7/site-packages/
Now let test that all packages can work together.
python
Python 2.7.2 (default, Oct 29 2011, 02:44:17)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-51)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import django
>>> print django.get_version()
1.3
>>> import MySQLdb
>>> import flup
If there's no error return then move to next step
Install Django App Using Python2.7 on Site5 Part II