- Go to http://www.python.org/download/releases/2.7.5/
- Click the second to last download link
- Follow the instructions in the install package
- Go to https://developer.apple.com/xcode/ and click the link to go to the app store 2.Download the app
- Open Xcode, then go to Preferences --> Downloads and install the 'Command Line Tools'
- Have XCode installed
- Go to terminal
- Type:
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
- Press enter when prompted
- Go to https://www.djangoproject.com/download/ and download the tar.gz file
- Unzip the file, go to Terminal, and enter the made Django folder
- Type:
sudo python setup.py install
- Have Homebrew installed
- Go to terminal and type in
brew install mysql
- Type:
unset TMPDIR
- Type:
mysql_install_db --verbose --user=`whoami` --basedir="$(brew --prefix mysql)" --datadir=/usr/local/var/mysql --tmpdir=/tmp
- Type:
sudo mv /usr/local/opt/mysql/my-new.cnf /usr/local/opt/mysql/my.cnf
- Type:
cp `brew --prefix mysql`/homebrew.mxcl.mysql.plist ~/Library/LaunchAgents/
- Type:
launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist
- Have XCode installed
- Go to http://sourceforge.net/projects/mysql-python/?source=dlp
- Download and unzip the file
- Enter the newly made folder in terminal
- Type:
sudo python setup.py install
In terminal, type the following:
mysql -u root
CREATE DATABASE ula CHARACTER SET utf8;
GRANT ALL ON ula.* TO 'djangouser'@'localhost' IDENTIFIED BY 'abc123';
- Go into apps/settings.py
- Change ROOT_HTTP to /absolute/path/to/oola/folder/oola
- In array databases settings, change 'NAME', 'USER', and 'PASSWORD' to the database information that you created
- Type python manage.py syncdb to build database tables
- Type python manage.py runserver to run project
- Go to url 127.0.0.1:8000 to view the website