i have a problem with Django: I can't show the data from mysql database in the table. I see the error "Exception Value: unhashable type: 'dict'" This is my code: views.py:
List_of_date=El.objects.all()
return HttpResponse(template.render(context),args, {'List_of_date': List_of_date})
models.py:
class El(models.Model):id_ch=models.IntegerField()TXT = models.CharField(max_length=200)
Template:
<table><thead><tr><th>№</th><th>Text</th></tr></thead><tbody>{% for i in List_of_date %}<tr><td class="center">{{ i.id_ch }}</td><td class="center">{{ i.TXT }}</td></tr>{% endfor %}</tbody></table>
Can anybody help me?