Created
February 27, 2014 12:19
-
-
Save Zarkonnen/9249036 to your computer and use it in GitHub Desktop.
Shell script to set up a django project folder structure.
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
#! /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