Navigation | Getting virtualized python , django, and mysql working on OS X snow leopard

Getting virtualized python , django, and mysql working on OS X snow leopard

Yesterday, I was able to  to get django, installed with mysql support.  I used several websites to get it working right.

1) i installed mysql (64bit) from the official builds on mysql.com

2) i installed virtualenv from setuptools. I typed the following:

$ sudo easy_install virtualenv

3)  I created directory for my virtual environment for python by typing following:

$ virtualenv -v mydjango

4)  Downloaded mysql python module from http://sourceforge.net/projects/mysql-python/files/ placed it in mydango directory.

5) in the shell, i went into mydango directory.

6)  I then activated the virtualized python envirtonment

7) I then  compiled  mysql driver by typing the following

$ ARCHFLAGS=”-arch x86_64″ python setup.py build

8)  installed the driver. typed the following

$ python setup.py install

9)  I downloaded django and placed it in mydango directory

10) Installed django by typing

$ python setup.py install

Filed by Alex at November 18th, 2009 under programming, python, Tech, Web Development