0
我想爲我的項目編寫一個需要Django的安裝腳本。我使用PIP安裝應用程序的列表,但是當它到達的Django它說使用pod從bash安裝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
,我從需求文件安裝的Django越來越悲傷。