Showing posts with label pinax. Show all posts
Showing posts with label pinax. Show all posts

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!

Monday, September 29, 2008

Playing with Django and Pinax - Mac OSX/MySQL

Installing Django - just followed instructions on django site http://docs.djangoproject.com/en/dev/intro/install/

Then ran through the tutorials

Then installed pinax using svn command here http://code.google.com/p/django-hotclub/source/checkout

Tried synchdb but didn't have PIL installed so got a load of errors.

Didn't have PIL so followed instructions here: http://www.p16blog.com/p16/2008/05/appengine-installing-pil-on-os-x-1053.html

setup data tables using
python ./manage.py syncdb

Wanted to use mysql - so installed ez_install
- downloaded egg here http://pypi.python.org/pypi/setuptools
- ran: sh setuptools-0.6c9-py2.5.egg

easy_install mysql-python


Then started mysql and created a new database and changed settings.py to use mysql and point to new database.

now syncdb again and tables created in mysql!
run: ./manage.py runserver
and pinax app available at http://127.0.0.1:8000

Wow!