Installation and Configuration
how to install and cinfigure leocornus.django.ploneproxy
Leocronus.django.ploneproxy is designed as a regular Django Application. We need Django Framework is installed and working fine.
Leocornus.django.ploneproxy also provided a mod_python PythonAuthenHanlder implementation. So we also need make sure the mod_python is installed and configured properly!
The other dependence of leocornus.django.plonproxy is module httplib2. We need it to be installed too!
About Python
We are using Python 2.4.x
Python setuptools
Django installation requires Python setuptools, so our first step is installing setuptools http://pypi.python.org/pypi/setuptools.
We will use the latest version for Python 2.4.x http://pypi.python.org/packages/2.4/s/setuptools/setuptools-0.6c11-py2.4.egg. After download, we could install it my using the following command
$ sh setuptools-0.6c11-py2.4.egg
Django Framework
We are using Django Framework version 1.1.x. Following is how to install Django Framework. More details info could be found here: http://docs.djangoproject.com/en/dev/intro/install/.
$ wget http://www.djangoproject.com/download/1.1.2/tarball/
$ tar -xzvf Django-1.1.2.tar.gz
$ cd Django-1.1.2
$ python setup.py install
Install SQLite 3
Django needs a backend database, SQLite 3 is the easiest one.
$ wget http://sqlite.org/sqlite-amalgamation-3.6.23.1.tar.gz
$ tar -zxvf sqlite-amalgamation-3.6.23.1.tar.gz
$ cd sqlite-3.6.23.1
$ ./configure
$ make install
Install PySqlite 2
Pysqlite 2 is the Python module to access SQLite 3 database. More details could be found here: http://trac.edgewall.org/wiki/PySqlite.
$ wget http://pysqlite.googlecode.com/files/pysqlite-2.6.0.tar.gz
$ tar -xzvf pysqlite-2.6.0.tar.gz
$ cd pysqlite-2.6.0
$ python setpu.py install
Install httplib2
$ wget http://httplib2.googlecode.com/files/httplib2-0.6.0.tar.gz
$ tar -zxvf httplib2-0.6.0.tar.gz
$ cd httplib2-0.6.0
$ python setup.py install
Install mod_python
suppose we are already using mod_python. skip it.