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

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -