Search code examples
pythondjangoosx-snow-leopard

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!


Solution

  • 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