I wrote a python django library and wanted to capture some classic "python prompt documentation" for it. It turned out to be harder then I thought.
First of all, you are no longer able to run regular python (maybe I missed something) via
python manage.py shell
Django still happily runs ipython for you.
Second, once you've installed ipython, when you run
ipython manage.py shell
django will happily "embed()" new session of ipython for you, so no matter which parameters you provide to your "ipython", they won't work. So, this --classic
(which turns out good old >>>
prompt and all other python-mimic) won't work here:
ipython manage.py shell --classic
Quick and dirty fix without going to all sort of upstreams asking for better API is to go to django inside your virtualenv and add explicit config-passing as shown below in python-file.