Skip to content

Instantly share code, notes, and snippets.

@howiworkdaily
Forked from lincolnloop/gist:91456
Created April 7, 2009 21:55
Show Gist options
  • Save howiworkdaily/91484 to your computer and use it in GitHub Desktop.
Save howiworkdaily/91484 to your computer and use it in GitHub Desktop.
# Django virtualenv helpers
VIRTUALENV_PROJECTS=~/projects
# work on virtualenv
function workon(){
cd $VIRTUALENV_PROJECTS/$1
source bin/activate
}
# Run Django management commands
# Assumes project directory is symlinked as `main` in the root of the virtualenv
function dmc(){
cd main
./manage.py $1
cd ..
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment