【问题标题】:How do I disable IPython when opening a Django shell打开 Django shell 时如何禁用 IPython
【发布时间】:2015-11-27 03:47:23
【问题描述】:

如果它是一个多用户环境并且无法卸载 IPython,你将如何在没有 IPython 的情况下启动 Django shell。

【问题讨论】:

    标签: django ipython


    【解决方案1】:

    Passing --plain 会告诉 Django 不要寻找 IPython。

    【讨论】:

      【解决方案2】:

      从 Django 1.10 开始,--plain 标志已弃用,您应该使用 -i 标志从可用的交互式 shell {ipython,bpython,python} 中进行选择

      ./manage.py shell -i python
      

      【讨论】:

        【解决方案3】:

        你可以从项目 virtualenv 中uninstall ipython,这就是你所需要的

        【讨论】:

        • 问题只有两行,包含“卸载 IPython 不是一个选项”。
        猜你喜欢
        • 2014-11-29
        • 1970-01-01
        • 1970-01-01
        • 2018-04-20
        • 1970-01-01
        • 2011-01-07
        • 1970-01-01
        • 2022-11-18
        • 1970-01-01
        相关资源
        最近更新 更多