Skip to content

Instantly share code, notes, and snippets.

@Zarkonnen
Created February 27, 2014 12:19
Show Gist options
  • Save Zarkonnen/9249036 to your computer and use it in GitHub Desktop.
Save Zarkonnen/9249036 to your computer and use it in GitHub Desktop.
Shell script to set up a django project folder structure.
#! /bin/sh
# Instructions: ./startproject.sh projectname appname
mkdir $1
cd $1
virtualenv .
source bin/activate
pip install django
git init $1
cd $1
django-admin.py startproject $1
cd $1/$1
django-admin.py startapp $2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment