Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Django virtualenv shortcuts for ~/.bashrc
# Django virtualenv helpers
# work on virtualenv
function workon(){
source bin/activate
# Run Django management commands
# Assumes project directory is symlinked as `main` in the root of the virtualenv
function dmc(){
cd main
./ $1
cd ..
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment