2021年3月8日星期一

django shell_plus : autoreload not working

I am using python 3.7 and have intalled IPython

I am using ipython shell in django like

python manage.py shell_plus  

and then

[1]: %load_ext autoreload  [2]: %autoreload 2  

and then i am doing

[1]: from boiler.tasks import add  [2]: add(1,2)  "testing"  

change add function

def add(x,y):      print("testing2")  

and then i am doing

[1]: from boiler.tasks import add  [2]: add(1,2)  "testing"  

so here i found its not updating

https://stackoverflow.com/questions/66534294/django-shell-plus-autoreload-not-working March 09, 2021 at 01:20AM

没有评论:

发表评论