Skip to content
Create a gist now

Instantly share code, notes, and snippets.

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
Something went wrong with that request. Please try again.