갈루아의 반서재

장고 포럼 프레임워크인 장고 마키나를 설치해보자.



1. Django-machina 설치에 필수 요소부터 챙겨보자

아래가 사전 준비되어야 할 패키지 목록이다.



2. 설치된 패키지를 확인한 후 없는 패키지 아래와 같이 설치한다.

파이썬 모듈 설치여부 확인방법은 아래 포스팅 참조

☞ http://www.antilibrary.org/775


Django-model-utils 2.3.1 설치
1
# pip install django-model-utils
cs


Django-mptt 0.74 설치

파일 다운로드 후 아래와 같이 실행

1
# python setup.py install
cs


Django-markdown 0.8.4 설치

1
# pip install django-markdown
cs


settings.py에 다음과 같이 추가

1
INSTALLED_APPS += ( 'django_markdown', )
cs


urls.py 다음 추가

1
url('^markdown/', include( 'django_markdown.urls')),
cs



Django-widget-tweaks 1.4.1 설치

1
pip install django-widget-tweaks
cs


settings.py에 다음과 같이 추가

1
INSTALLED_APPS += ( 'widget_tweaks', )
cs



3. 위의 준비가 끝났으면 django-machina 를 설치한다.


1
2
3
4
5
(envtread)root@localhost:~# pip install git+git://github.com/ellmetha/django-machina.git
Collecting git+git://github.com/ellmetha/django-machina.git
  Cloning git://github.com/ellmetha/django-machina.git to /tmp/pip-fxTdF4-build
  Error [Errno 2] No such file or directory while executing command git clone -q git://github.com/ellmetha/django-machina.git /tmp/pip-fxTdF4-build
Cannot find command 'git'
cs


위와 같은 에러가 뜨면 git 부터 설치한 후 django-machina를 설치한다.

http://git-scm.com/downloads

1
$ apt-get install git
cs