Skip to content

Instantly share code, notes, and snippets.

@darklow
Forked from shulcsm/gist:5151483
Last active August 29, 2015 14:04
Show Gist options
  • Save darklow/d891ea40967a2b2a52ef to your computer and use it in GitHub Desktop.
Save darklow/d891ea40967a2b2a52ef to your computer and use it in GitHub Desktop.
ROOT_DIR="$1"
mkdir "$ROOT_DIR"
cd "$ROOT_DIR"
#setup venv
virtualenv env --distribute
source env/bin/activate
#install django so we can start up an app
pip install django
#start app from template
django-admin.py startproject --template=https://bitbucket.org/ffitlv/django-project-template/get/master.zip --extension=py,rst,html "$ROOT_DIR" .
cd "$ROOT_DIR"
#install template requirements
pip install -r requirements/development.txt
#ini new git repo
git init
git add .
git commit -m "Initial commit"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment