-
-
Save howiworkdaily/91484 to your computer and use it in GitHub Desktop.
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
# 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