2012-11-06 3 views
0

Django가 필요한 프로젝트 용 설치 스크립트를 작성하려고합니다. 나는 응용 프로그램의 목록을 설치하는 PIP를 사용하고 있지만, 장고을 얻을 때 그것은bash에서 pip를 사용하여 Django 설치

You just installed Django's auth system, which means you don't have any superusers defined. 
    Would you like to create one now? 

내가 자율이 스크립트를 필요로했다.

자동으로이 질문에 답하거나 무시하고 수퍼 유저를 나중에 설정 하시겠습니까?

내 기본 bash는 스크립트는 내가 요구 사항 파일에서 장고를 설치하는 슬픔을 얻고이

#!/bin/bash 

    set -eux 

    #==================================================# 
    # These should be just the server requirements only 
    # !! Exception being scipy for now. pip install not 
    # working 
    #==================================================# 

    apt-get install -y python postgresql-9.1 apache2 python-setuptools postgresql-server-dev-9.1 postgresql-9.1-postgis postgis python-scipy binutils libproj-dev gdal-bin git 

    #==================================================# 
    # setup the posgis template for postgresql 
    #==================================================# 
    GEOGRAPHY=0 
    POSTGIS_SQL=postgis.sql 

    BLAH BLAH !!! 
    Lots of database set up code here 

    #==================================================# 
    # Setup the python environment 
    #==================================================# 
    easy_install virtualenv 
    easy_install virtualenvwrapper 
    easy_install pip 

    #==================================================# 
    # Pull the catami code from git and install 
    #==================================================# 

    mkdir -p /home/catami 
    mkdir -p /home/catami/catamiportal 
    cd /home/catami/catamiportal 
    git clone https://github.com/catami/catami.git 
    cd catami 

    pip install -r requirements.txt 

    python manage.py syncdb 

    manage.py runserver 0.0.0.0:8000 

같이 보입니다.

답변

1

내 실수. 설치가 아닌 질문을하는 것은 syncdb 명령입니다.

용액

python manage.py syncdb --noinput 
이다
관련 문제