阅读背景:

如何将导入预加载到Django的管理中。py shell命令吗?

来源:互联网 

When I run manage.py shell on my Django project to take a peek at something there are common imports that I always want to run at the start of the shell (e.g. I always want to import my model files.) How can I have these run automatically everytime I run the shell command?When I run manage.py shell on my Django project




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

分享到: