django shell 使用ipython

https://stackoverflow.com/questions/14616805/why-wont-django-use-ipython

配置方法:

https://blog.csdn.net/Li_G_yuan/article/details/88073231

注意:如果使用了虚拟环境,那么需要也需要在虚拟环境中安装ipython

可以使用如下语句测试虚拟环境中是否安装ipython

python manage.py shell -i ipython 

如果没有安装则报如下错误:
CommandError: Couldn't import ipython interface.

posted @ 2020-08-15 11:33  那时一个人  阅读(471)  评论(0)    收藏  举报