Skip to content

Instantly share code, notes, and snippets.

@mpasternacki
Created September 8, 2009 10:19
Show Gist options
  • Save mpasternacki/182836 to your computer and use it in GitHub Desktop.
Save mpasternacki/182836 to your computer and use it in GitHub Desktop.
Smart IPython script for comfortably running Django's manage.py shell with ipython.el
#!/bin/sh
set -e
/bin/echo -n "Select Django project/dir, or press enter for plain ipython: "
read selection
case $selection in
'') exec ipython ;;
sj) cd /Users/japhy/Projekty/SetJam/setjam/setjam ;;
*) cd $selection ;;
esac
exec python manage.py shell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment