Mezzanine Debian Django Virtualenv Postgresql Install

mkdir ~/.virtualenvs
sudo pip install virtualenv
sudo pip install virtualenvwrapper

This creates the directory in which your virtual environments will live, and can be any directory (hidden or not). The default is as above. The second step is to tweak your .bashrc file by adding the following:

export WORKON_HOME=$HOME/.virtualenvs 
source /usr/local/bin/virtualenvwrapper.sh 
export PIP_VIRTUALENV_BASE=$WORKON_HOME

Postgresql

Install, add user, if you want install pgadmin3.

Edit

sudo vi /etc/postgresql/9.2/main/pg_hba.conf 

edit the line starting with local ending with peer, become trust

#local   all             all                                     peer
local   all             all                                     trust

edit

sudo vi /etc/postgresql/9.3/main/postgresql.conf 
# - Connection Settings - 
listen_addresses = '*' 
# what IP address(es) to listen on; 
# defaults to 'localhost', '*' = all 
port = 5432 
# (change requires restart)
mkvirtualenv myenv
pip install south 
pip install django-compressor 
pip install mezzanine

In settings.py, add the line ALLOWED_HOSTS

# Don't forget to use absolute paths, not relative paths.
TEMPLATE_DIRS = (os.path.join(PROJECT_ROOT, "templates"),)

#Added for security
ALLOWED_HOSTS = ['localhost',]

Source
http://www.rosslaird.com/blog/first-steps-with-mezzanine/
http://www.djangoproject.com/‎
http://www.virtualenv.org/‎