阅读背景:

如何自定义Django manage.py shell?

来源:互联网 

Almost every time I use the manage.py shell in Django, I want to have certain things imported. I want to import * from my models.py module, for instance. Currently, my work around is to put all the imports in a file named s.py, and then after I fire up the shell I type execfile('s.py').Almost every time I use the manage.py shell in




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: