gist

2012年12月18日火曜日

Django 1.4の日本語ドキュメントをビルドするメモ

# Install sphinx by easy_install
$ sudo easy_install sphinx
# Clone django-docs-ja from github
$ git clone git://github.com/django-docs-ja/django-docs-ja.git
$ cd django-docs-ja
$ make html
$ open _build/html/index.html

2012年12月16日日曜日

Mountain Lion に Django をインストールするメモ

# 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.
view raw gistfile1.sh hosted with ❤ by GitHub