Skip to content

Instantly share code, notes, and snippets.

@dhepper
Created January 4, 2012 08:37
Show Gist options
  • Save dhepper/1559119 to your computer and use it in GitHub Desktop.
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
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