Django

Finding your python site-packages directory

python -c “from distutils.sysconfig import get_python_lib; print get_python_lib()”

Installing Django on Ubuntu 10.04 LTS

check your hostname is set properly: >hostname >hostname -f update the server: apt-get update >apt-get upgrade install apache and mod_wsgi: >sudo apt-get install apache2 libapache2-mod-wsgi and install setup tools for python, and pip: > sudo apt-get install python-setuptools > sudo apt-get install python-pip Pick a database: >apt-get install mysql-server python-mysqldb >apt-get install postgresql python-psycopg2 >apt-get [...]