擅长:python、mysql、java
<p>对作业使用<code>django.forms</code>。不要将数据直接从<code>POST</code>放到数据库中。请参阅相关的<a href="https://docs.djangoproject.com/en/dev/topics/forms/modelforms/" rel="nofollow">documentation</a>。</p>
<pre><code>local variable 'store' referenced before assignment
</code></pre>
<p>这个错误很明显——即使请求不是<code>POST</code>,您也在引用<code>store</code>。</p>