3 DJANGO_REQ='django>=1.4,<1.5'
5 VIRTUALENVWRAPPER_PATHS="
6 /etc/bash_completion.d/virtualenvwrapper
7 /usr/bin/virtualenvwrapper.sh
8 /usr/local/bin/virtualenvwrapper.sh
18 echo " fnpdjango_bootstrap.sh <project_name>"
20 echo " wget <remote_path> -O-|bash /dev/stdin edumedfnpdjango_bootstrap.sh <project_name>"
24 for venv in $VIRTUALENVWRAPPER_PATHS
28 VIRTUALENVWRAPPER="$venv"
32 if [ "$VIRTUALENVWRAPPER" ]
34 echo "virtualenvwrapper found at $VIRTUALENVWRAPPER."
35 source "$VIRTUALENVWRAPPER"
37 echo "ERROR: virtualenvwrapper not found. Tried locations:"
38 echo "$VIRTUALENVWRAPPER_PATHS"
39 echo "Install virtualenvwrapper or add the correct path to this script."
44 echo -e "${strong}Creating virtualenv: $PROJECT...${normal}"
45 mkvirtualenv "$PROJECT"
46 echo -e "${strong}Installing Django...${normal}"
47 pip install "$DJANGO_REQ"
49 echo -e "${strong}Starting the project...${normal}"
50 django-admin.py startproject \
51 --template http://pypi.nowoczesnapolska.org.pl/bootstrap/project.tar.gz \
56 mv "$1"/localsettings.py.default "$PROJECT"/localsettings.py
58 echo -e "${strong}Installing requirements...${normal}"
59 pip install -r requirements.txt
60 echo -e "${strong}Installing developer requirements...${normal}"
61 pip install -r requirements-dev.txt
62 echo -e "${strong}Starting new git repository...${normal}"