How To Reload Python Module In Flask?
I have a file called mapping.py which has a dictionary methodMapping. In my web application, a key-value pair is added to the methodMapping dictionary. After I appended it to mappi
Solution 1:
The problem is the way you imported mapping. If you want reload(mapping)
to work, you need to use import mapping
instead of from mapping import...
.
And if you find the answer, you should put it in an Answer instead of in a comment. ;)
Post a Comment for "How To Reload Python Module In Flask?"