Edit your ~/.bash_profile, add the following line:
export DYLD_LIBRARY_PATH=/usr/local/mysql/lib/
If you are already using MAMP you still have to follow the above MySQL installation process, as MAMP by default doesn’t include the required header files to build MySQL-python.
Moreover if you prefer MAMP, you don’t have to run mysql from /usr/local/mysql.
On your settings.py remember to set “127.0.0.1″ as your preferred db host in case that “localhost” doesn’t work.
Test MySQL-python installation
Restart Terminal and type:
python
import MySQLdb
If you are not getting any errors at this point, then you are all good to go!
I’d suggest starting from the Django’s excellent introductory tutorial.