1. Install OS X developer tools
Install Xcode development tools and be sure to check the 10.4 checkbox.
If unsure insert the DVD and check you have installed the 10.4 libraries, otherwise python-mysql may not compile on your system.
2. Install MySQL :
Download MySQL 5.1 64bit version here :
http://dev.mysql.com/downloads/mysql/5.1.html
Pick up the 64bit DMG image.
Mount it and follow the provided instructions.
MySQL should be installed correctly now.
Add the auto-startup thing and the preference pane which is a very nice addition.
The default root password should be empty by default, change it according to your taste.
I suggest using Sequel Pro as a client.
3. Install Sequel Pro :
Sequel Pro is a free MySQL which will really help you in your every day developer tasks.
Please give a donation to its author.
http://www.sequelpro.com/download/
Install Sequel Pro.
Configure a Socket connection :
Name : mysql
Username : root
Password :
Socket : /tmp/mysql.sock
(/tmp/mysql.sock should be the default socket provided by the freshly installed MySQL 5.1 package – leaving this field blank should also work)
Add to the favorites.
Click on Connect.
You should be connected to your MySQL Server now.
Otherwise check that MySQL is running correctly and that you can connect from the terminal.
4. Check Python version
Open the terminal
python –version
Python 2.6.1
The Mac OS X 10.6.4 running here embeds Python 2.6.1 which is great for Django 1.3.
Django 1.3 would accept a Python version between 2.4 and 2.7.
5. Install the python-mysql driver
sudo easy_install mysql-python
6. Install Django 1.3
Remove any eventual prior version :
rm -fr /Library/Python/2.6/site-packages/django/
(site-packages is where the stuff gets installed when you execute easy_install)
sudo easy_install django
7. Install South
I suggest this very clever addition to Django to manage Models migrations in a snap.
…
Now DJ and Go !
