(myvenv)me:src orokusaki$ python manage.py shell -i ipython
Python 2.7.2 (default, Jun 16 2012, 12:38:40)
[GCC 4.2.1 Compatible Apple Clang 4.0 (tags/Apple/clang-418.0.60)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
>>> while True:
... pass # :(
...
I have IPython installed globally, and it works while this myvenv virtualenv is activated just fine. However, if I start the Django shell (with or without -i), it won't use IPython. I've never had this problem before.
Note: django-admin.py vs manage.py won't make a difference.
which ipythonpoints to the virtualenv's version, but readline somehow works... so I wasn't even thinking about installing it into my virtualenv, until you suggested it. thanks again.--system-site-packages), edit the first line of the ipython script to use/usr/bin/env pythoninstead of the hardcoded path to the Python which installed IPython.pip, did you? Because that doesn't actually install a readline that will be importable from any environment other than a running IPython session (IPython has a specific hack, because too many people make the mistake of installing readline with pip). You must useeasy_install -a readline. Even after thatt, you will need virtualenv ≥ 1.8.3 in order to stage readline properly into envs, otherwise virtualenv will copy the System readline, and not your readline into the env.