Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I disable IPython when opening a Django shell

Tags:

django

ipython

If it is a multi-user environment and uninstall IPython is not an option, how would you go about launching a Django shell without IPython.

like image 861
Dax Avatar asked Nov 27 '15 03:11

Dax


2 Answers

Passing --plain will tell Django to not look for IPython.

like image 190
Ignacio Vazquez-Abrams Avatar answered Sep 20 '22 20:09

Ignacio Vazquez-Abrams


As of Django 1.10 the --plain flag is deprecated, instead you should use -i flag to choose from available interactive shells {ipython,bpython,python}

./manage.py shell -i python
like image 37
Amin Hemati Nik Avatar answered Sep 20 '22 20:09

Amin Hemati Nik