Use IPython when dropping into the Django shell: bin/python manage.py shell -i ipython

@williballenthin