Skip to content

@lincolnloop /gist:91456
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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
Something went wrong with that request. Please try again.