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

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

PostgreSQL 9.x - pg_read_binary_file & inserting files into bytea -

c++ - Update and multiple console windows -