Django's manage.py shell won't indent

后端 未结 1 1753
伪装坚强ぢ
伪装坚强ぢ 2021-01-19 23:38

I seem to have run into a strange bug or more likely some setting I am unfamiliar with on my system that is not allowing me to tab when I am in Django\'s shell (python

相关标签:
1条回答
  • 2021-01-20 00:25

    I'm guessing normally when you run python it's invoking something like ipython instead because the normal stock interpreter does not do tab-completion. It should pick up ipython automatically and use it, though. Try firing up a plain python interpreter (just run python at the command line) and running

    import IPython
    

    If you can do that, manage.py should use ipython. If not, maybe reinstall ipython as it would appear that the IPython module didn't get properly installed.

    0 讨论(0)
提交回复
热议问题