Django中的交互式shell [英] Interactive shell in Django
本文介绍了Django中的交互式shell的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想获得一个带有代码的交互式外壳,但是我什至不知道这样的事情是否存在.现在有人可以帮助我吗?
I would like to get an interactive shell with the code, but I don't even know if such thing exits. Could anyone be able to help me at this point?
我已经知道我们可以使用 python manage.py shell
,但是我希望我们可以在代码中插入某些内容,而不必重新导入该库中的所有库.外壳.
I already know we could use python manage.py shell
, but I would like something we could insert in the code in such a way we do not have to re-import all the libraries in the shell.
推荐答案
此命令将帮助您加载所有软件包.
This command will help you to load all packages.
python manage.py shell_plus
参考链接 http://django-extensions.readthedocs.io/en/Latest/index.html
这篇关于Django中的交互式shell的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文