Skip to content

Instantly share code, notes, and snippets.

@jbarone
Last active December 25, 2015 01:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jbarone/6892579 to your computer and use it in GitHub Desktop.
Save jbarone/6892579 to your computer and use it in GitHub Desktop.
Bash script for creating new django projects
#!/bin/bash
function create-project()
{
if [ $# -eq 0 ]
then
echo "You must provide a project name"
return
fi
mkproject ${1}
pip install "Django>=1.6.0,<=1.6.9"
django-admin.py startproject --template=https://github.com/jbarone/django-starter/zipball/master ${1} .
pip install -r reqs/develop.txt
fab initialize
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment