Season 1 아카이브/프로그래밍
                
              장고 마키나 설치하기 (1) Django-machina installation
                문장전달자
                 2015. 12. 2. 17:22
              
              
                    
        728x90
    
    
  장고 포럼 프레임워크인 장고 마키나를 설치해보자.
1. Django-machina 설치에 필수 요소부터 챙겨보자
아래가 사전 준비되어야 할 패키지 목록이다.
- Python 2.7, 3.3, 3.4 or 3.5 → 2.7
 - Django 1.5.x, 1.6.x, 1.7.x or 1.8.x → 1.78.2
 - Pillow 2.2. or higher → 2.8.2
 - Django-model-utils 2.0. or higher X
 - Django-mptt 0.7. or higher X
 - Django-haystack 2.1. or higher → 2.3.2
 - Django-markdown 0.7. or higher X
 - Django-widget-tweaks 1.4. or higher X
 South 1.0.1 or higher if you are using Django < 1.7
2. 설치된 패키지를 확인한 후 없는 패키지 아래와 같이 설치한다.
파이썬 모듈 설치여부 확인방법은 아래 포스팅 참조
☞ http://www.antilibrary.org/775
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 | 
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 | 
728x90