-
-
Save darklow/d891ea40967a2b2a52ef to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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