Skip to content

Instantly share code, notes, and snippets.

Created February 9, 2012 17:22
Show Gist options
  • Save fyaconiello/1781374 to your computer and use it in GitHub Desktop.
Save fyaconiello/1781374 to your computer and use it in GitHub Desktop.
Django Lion Setup
Step 1 - download and install macosx pkgs
  • download and install xcode
  • XCode and enable Command Line Tools
  • download and install mysql-server
Step 2
nano ~/.bash_profile

add the following

export ARCHFLAGS="-arch x86_64"
export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:/usr/local/mysql/lib
export PATH=$PATH:/usr/local/mysql/bin
Step 3: install homebrew
ruby -e "$(curl -fsSL"
install GIT, required to update brew
brew install git
brew update
brew install bash-completion byobu ssh-copy-id wget
install pip + virtualenv
sudo easy_install pip
sudo pip install virtualenv
Install libjpeg (PIL req)
curl -O
tar -xvzf jpegsrc.v8c.tar.gz
cd jpeg-8c
sudo make install
cd ../
install freetype (more PIL requirements)
curl -O
tar -xvzf freetype-2.4.5.tar.gz
cd freetype-2.4.5
sudo make install
cd ../
Step 4: setup git
setup the public key
ssh-keygen -t rsa -C ""
pbcopy < /User/user/.ssh/

log into and paste from your clipboard into SSH Keys on GitHub.

ssh -T
git config --global "Bob Builder"
git config --global ""
git config --global core.autocrlf input
Step 5: setup first virtualenv

Create the first environment

mkdir ~/Sites/environments
cd ~/Sites/environments
virtualenv liftcaregiving

enter your new environment

source ~/Sites/environments/liftcaregiving/bin/activate

clone the lift repo and satisfy the requirements of that repo

cd ../Sites
git clone
pip install -r ~/Sites/Lift--Caregiving/requirements.txt

You are up and running in magical land of v-envs!!

Copy link

ruby -e "$(curl -fsSkL" command changed

Copy link

eoleary commented Mar 10, 2013

+1 on Josh's comment

Copy link

If you install sublime, run ln -s /Applications/Sublime\ Text\ /usr/local/bin/subl to get the subl command line functionality

Copy link

eoleary commented Nov 8, 2013

In 10.9:

ln -s /Applications/ /usr/local/include/X11

Copy link

Homebrew install url now:
ruby -e "$(curl -fsSL"

Copy link

yohoGDES commented Oct 6, 2014

New Homebrew install:
ruby -e "$(curl -fsSL"

Copy link

yohoGDES commented Oct 9, 2014

xcode-select --install

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment