To connect to a MySQL database from Django or a python script you have to install MySQLdb. The installation of the package on MacOSX is not straightforward, so here is a small howto.
Download and unpack the MySQLdb package
Edit the setup-posix.py file, and change the line below:
mysql_config.path = “mysql_config”
to
mysql_config.path = “/usr/local/mysql/bin/mysql_config”
Note: you have to specify the [...]