1. 在manage.py同级目录创建jupyter notebook

2. 在jupyter notebook里面启用django:

如何使用jupyter notebook调试django

只需要这三行代码就可以启动Django了

这实际就是在django中manage.py文件吧内个路径复制过来运行。

接下来就可以像django中的shell那样来运行了。

相关文章: