Opened 6 years ago
Closed 6 years ago
#31138 closed Uncategorized (invalid)
Question on template render
| Reported by: | AjaxFB | Owned by: | nobody |
|---|---|---|---|
| Component: | Template system | Version: | 3.0 |
| Severity: | Normal | Keywords: | |
| Cc: | Triage Stage: | Unreviewed | |
| Has patch: | no | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description (last modified by )
Django version 3.0.2
j = {'a': '1', 'b': '2', 'c': '3'}
when
return render(request,"index.html",{'json':j})
{% for item in json %}
{% for column in item %}
{{ item.column }}
{% endfor %}
{% endfor %}
Why render template cant find/print item.column content?
I need really change this in views.py?
Change History (2)
comment:1 by , 6 years ago
| Description: | modified (diff) |
|---|
comment:2 by , 6 years ago
| Resolution: | → invalid |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Sorry, but this ticket tracker is not a support channel.
See https://code.djangoproject.com/wiki/TicketClosingReasons/UseSupportChannels