Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IPython doesn't work in Django shell

I've just recently switched over to using 64-bit Python 2.6.1 on Mac OS X 10.6 (Snow Leopard). IPython won't work with Django anymore, but IPython works from the command-line.

The error says:

    shell = IPython.Shell.IPShell(argv=[])
AttributeError: 'module' object has no attribute 'Shell'

I could use the ./manage.py --plain option, but it's not really a fix. Any help very gratefully received!

like image 675
Zemogle Avatar asked Jan 21 '10 12:01

Zemogle


1 Answers

IPython 0.11 has a different API, for which a fix exists in the last Django versions.

For older Django versions, you can use IPython 0.10, which does work:

pip install ipython==0.10
like image 88
vdboor Avatar answered Nov 10 '22 10:11

vdboor