Django ipython autoreload
来源:互联网 发布:相册视频制作软件 编辑:程序博客网 时间:2024/06/03 18:01
使用Django时,如果要测试单个python文件,需要使用python manage.py shell
但是如果修改了代码,需要退出,然后重新进入ipython环境,才可以加载新的代码
有没有办法自动重载修改后的代码?
官网的解决方案,但是试了一下并没有用。
有没有哪位大神知道为什么?
In [1]: %load_ext autoreloadIn [2]: %autoreload 2In [3]: from foo import some_functionIn [4]: some_function()Out[4]: 42In [5]: # open foo.py in an editor and change some_function to return 43In [6]: some_function()Out[6]: 43
官网解决地址:https://ipython.org/ipython-doc/3/config/extensions/autoreload.html
阅读全文
0 0
- Django ipython autoreload
- Autoreload of modules in IPython
- django开发者模式中的autoreload是怎样实现的
- django开发者模式中的autoreload实现方法详解
- Ipython
- Ipython
- ipython
- Ipython
- IPython
- ipython
- Ipython
- ipython
- Ipython
- ipython
- ipython
- IPython
- ipython
- ipython
- 1:初学hadoop遇到各种错误,这里贴一下,方便以后脑补吧,报错如下: 主要是在window环境下面搞hadoop,而hadoop部署在linux操作系统上面;出现这个错误是权限的问题,操作had
- vsftpd设置被动模式
- Spatial Transformer Networks(空间变换神经网络)
- 数据结构--排序
- win10 重置子系统ubuntu
- Django ipython autoreload
- 好用的图片选择器,支持单选多选,相册里面又拍照
- 友盟推送错误码2027
- PHP获得真实客户端的真实IP REMOTE_ADDR,HTTP_CLIENT_IP,HTTP_X_FORWARDED_FOR
- 关于地图偏移问题的解答
- Method Swizzling 原理(方法搅拌?)
- 用以下三个方法让网站见不到负面
- 背包问题
- 动态渲染easyui