Created
December 16, 2012 07:27
-
-
Save tomoyukiinoue/4304007 to your computer and use it in GitHub Desktop.
Install Python and Django for Mac OS X 10.8
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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