Proper way to reload a python module from the console
<p>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:</p>

<pre><code>&gt;&gt;&gt; from project.model.user import *
&gt;&gt;&gt; reload(user)
</code></pre>

<p>but I receive:</p>

<pre><code>&gt;&gt;&gt;NameError: name 'user' is not defined
</code></pre>

<p>What is the proper way to reload the entire user class?  Is there a better way to do this, perhaps auto-updating while debugging?</p>

<p>Thanks.</p>
