Django on CentOS Python 2.6 VirtualEnv Using GeekyMedia RPMs

Django on centos geekymedia

for setuptools (easy_install):

easy_install *setuptools*

use it to install pip:
easy_install pip

download MySQLdb and install by:
python26 build
python26 install

download virtualenv
mkdir ~/.virtualenvs

add to .bashrc
source /usr/bin/

initialize virtualenv
mkdir dev
virtualenv dev

Start virtualenv for current session
source dev/bin/activate

now install packages, they will go inside virtualenv (since we are activated)
pip install django
pip install south
pip install pil

Create django project and app
cd dev/ startproject myproj
cd myproj
python startapp polls

Leave a Reply

Your email address will not be published. Required fields are marked *