Django on Site5

From Julian Yap

DRAFT


Site5 provides Django project hosting using the FastCGI Apache module. These are my notes on getting it working and basic usage.

Site5 is my current Web hosting provider. I highly recommend them.

If you would like to consider joining Site5, please click on my affiliate link here.

Contents

Setup Virtual Python

This will give you a fully operational local user install of Python 2.4.3. This will allow you to install additional Python modules. Don't forget, every time we do anything with Django we need to use our own python (~/bin/python).

Download Virtual Python and install it using:

$ wget http://peak.telecommunity.com/dist/virtual-python.py
$ python virtual-python.py
Creating /home/USERNAME/lib/python2.4
Creating /home/USERNAME/lib/python2.4/site-packages
Creating /home/USERNAME/include/python2.4
Copying /usr/local/bin/python to /home/USERNAME/bin
You're now ready to download ez_setup.py, and run
/home/USERNAME/bin/python ez_setup.py

This will creates some folders under your home directory, including bin and lib.

Download EZ Setup and install it with your virtual python using:

$ wget http://peak.telecommunity.com/dist/ez_setup.py
$ ~/bin/python ez_setup.py
Downloading http://cheeseshop.python.org/packages/2.4/s/setuptools/setuptools-0.6c3-py2.4.egg
Processing setuptools-0.6c3-py2.4.egg
creating /home/USERNAME/lib/python2.4/site-packages/setuptools-0.6c3-py2.4.egg
Extracting setuptools-0.6c3-py2.4.egg to /home/USERNAME/lib/python2.4/site-packages
Adding setuptools 0.6c3 to easy-install.pth file
Installing easy_install script to /home/USERNAME/bin
Installing easy_install-2.4 script to /home/USERNAME/bin

Installed /home/USERNAME/lib/python2.4/site-packages/setuptools-0.6c3-py2.4.egg
Processing dependencies for setuptools==0.6c3

Install Python Packages

Site5 specific

  • Request to Site5 support that they add you to the 'trusted' group. This will allow you to use programs such as wget and especially gcc. Specify your username and the reason ("for Subversion access").

Notes

Modified from forum posts: 1