Skip to content

Instantly share code, notes, and snippets.

@lincolnloop
Created April 7, 2009 21:05
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save lincolnloop/91456 to your computer and use it in GitHub Desktop.
Save lincolnloop/91456 to your computer and use it in GitHub Desktop.
Django virtualenv shortcuts for ~/.bashrc
# 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