2010-01-21 5 views
18

저는 최근에 Mac OS X 10.6 (Snow Leopard)에서 64 비트 Python 2.6.1을 사용하도록 전환했습니다. IPython은 Django와 더 이상 작동하지 않지만 IPython은 명령 행에서 작동합니다.IPython이 장고 쉘에서 작동하지 않습니다.

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

내가 ./manage.py --plain 옵션을 사용할 수 있지만 정말 수정이 아니다 :

오류는 말한다. 어떤 도움이라도 매우 감사하게 받아 들였습니다!

+0

당신이 iPython의 버전은 무엇을해야합니까 :

이전 장고 버전

, 당신은 작업을 수행 IPython 0.10을 사용할 수 있습니까? –

+0

또한 django와 함께 bpython을 사용할 수 있습니다. http://uswaretech.com/blog/2009/12/using-bpython-shell-with-django-and-some-ipython-features-you-should-know/ –

+0

IPython 0.11.bzr.r1205 있습니다. bpython 재미있는 것, 팁을 주셔서 감사합니다 – Zemogle

답변

28

IPython 0.11에는 다른 Django 버전에 수정본이있는 다른 API가 있습니다.

pip install ipython==0.10 
0

파이썬 대화 형 콘솔에서 실행할 때 작동합니까?

import IPython; IPython.Shell 
+0

--plain 플래그없이 runserver를 시도 할 때와 같은 대답을 얻습니다. AttributeError : 'module'객체에 'Shell'속성이 없습니다. – Zemogle

관련 문제