Sunday, April 12, 2009

Installing Pinax 0.7 on CentOS

So Easy!

Here is the complete list of commands I used to install in a pinax directory of /home

easy_install virtualenv
easy_install pip
cd /home
mkdir pinax
cd pinax
curl -o pinax-boot.py http://github.com/pinax/pinax/raw/master/scripts/pinax-boot.py
python pinax-boot.py pinax-env
cd pinax-env
source bin/activate
pip install --requirement src/pinax/requirements/external_apps.txt
cd /home/pinax/pinax-env/src/pinax/pinax/projects
pinax-admin clone_project basic_project myproject
cd myproject

amend settings.py to point to required database - I'm using mysql
setup mysql database
python manage.py syndb
python manage.py runserver

DONE!

1 comment:

Lawrence said...

I am logged in as root, got to the pip install line and got this error: IOError: [Errno 2] No such file or directory: 'src/pinax/requirements/external_apps.txt'
There is no src dir in pinax-env.
Thanks,
Lawrence