Skip to content

Instantly share code, notes, and snippets.

@tomoyukiinoue
Created December 16, 2012 07:27
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tomoyukiinoue/4304007 to your computer and use it in GitHub Desktop.
Save tomoyukiinoue/4304007 to your computer and use it in GitHub Desktop.
Install Python and Django for Mac OS X 10.8
# Install Python 2.7.3 via Homebrew
$ brew install python
$ echo 'export PATH=/usr/local/bin:$PATH' >> ~/.bash_profile
$ source ~/.bash_profile
$ python --version
Python 2.7.3
# Install Django 1.4.3 by easy_install
$ sudo easy_install django
$ sudo easy_install virtualenv
$ sudo easy_install virtualenvwrapper
$ sudo easy_install pip
$ echo 'export PATH=/usr/local/share/python:$PATH' >> ~/.bash_profile
$ source ~/.bash_profile
# Setup mysite
$ django-admin.py startproject mysite
$ cd mysite
$ python manage.py runserver
# Access http://localhost:8000 from your browser.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment