如何用Rich替换/扩展Django Shell?

问题描述

Django允许replace its default shell with more capable onesipythonbpython一样。

是否可以用Rich替换/扩展认的Django shell?

解决方法

不修改Django本身就不可能做到这一点。

受支持的shell is hard-codedipython and bpython have slightly different start-up logic的列表。

,

Rich的作者在这里。我计划研究如何将Rich pretty printing与iPython集成。在Twitter上关注@willmcgugan以获取进度报告。