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. |
0 件のコメント:
コメントを投稿