Advertisement
Guest User

Untitled

a guest
Apr 18th, 2014
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. def Playground_List(request):
  2.  
  3. context = {
  4. 'playgrounds': Playground.object.all()
  5. }
  6. return render (request, "home.html", context)
  7.  
  8. {% for playground in playgrounds %}
  9. {# Each "player" is a player model object. #}
  10. <tr>
  11. <td> {{ playground.Name }}</td>
  12. <td> {{ playground.Address }}</td>
  13. </tr>
  14. {% endfor %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement