alias pyweb='python -m SimpleHTTPServer'
alias mrs='./manage.py runserver'
alias ms='./manage.py shell'

validatejson() {
    cat $1 | python -m simplejson.tool
}

function remote_shell() {
    environment=$3 || "PRODUCTION" 
    /usr/bin/env ssh $1 "( DEPLOYMENT_TYPE=$environment cd $2 && env/bin/python ./manage.py shell )"
}

alias pyweb='python -m SimpleHTTPServer'
alias mrs='./manage.py runserver'
alias ms='./manage.py shell'
alias ipython='python /usr/bin/ipython'

validatejson() {
    cat $1 | python -m simplejson.tool
}

function remote_shell() {
    environment=$3 || "PRODUCTION" 
    /usr/bin/env ssh $1 "( DEPLOYMENT_TYPE=$environment cd $2 && env/bin/python ./manage.py shell )"
}

Use system-wide ipython as to not need it in every damn virtualenv.
Use system-wide ipython as to not need it in every damn virtualenv.
