Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def Playground_List(request):
- context = {
- 'playgrounds': Playground.object.all()
- }
- return render (request, "home.html", context)
- {% for playground in playgrounds %}
- {# Each "player" is a player model object. #}
- <tr>
- <td> {{ playground.Name }}</td>
- <td> {{ playground.Address }}</td>
- </tr>
- {% endfor %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement