I\'m debugging from the python console and would like to reload a module every time I make a change so I don\'t have to exit the console and re-enter it. I\'m doing:
For python3, reload has been moved to imp module. you can use imp.reload(). You can refer to this post.
imp.reload()
>>> import imp >>> import project # get module reference for reload >>> imp.reload(project.models.user) # reload step 1 >>> from project.models.user import * # reload step 2