 <p>The error line is the last line of your <code>models.py</code>:</p> <pre><code>votes = models.IntegerField(default= </code></pre> <p>It should be:</p> <pre><code>votes = models.IntegerField(default=0) </code></pre>