django, python: reload function in shell -
i work in django ipython-shell, can started manage.py shell
. when load extern function in shell testing, alright. when make changes function, shell still has old version of function. if make new import.
does know how reload actual version of function?
thanks in regards!
edit: use windows - if makes difference.
i reload module remove the sys.modules , make new import.
import sys sys.modules.pop('your.module') import your.module # or your.module import your_function
Comments
Post a Comment