Created
January 4, 2012 08:37
-
-
Save dhepper/1559119 to your computer and use it in GitHub Desktop.
Adds a script to generate aliases for Django management commands to bin/activate
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
cat <<EOT >> bin/activate | |
for CMD in \`python -c 'from django.core import management; print " ".join(management.get_commands().keys())'\` | |
do | |
alias dj\${CMD}="django-admin.py \${CMD}" | |
done | |
EOT |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment