Пример #1
0
def mosaic(request, tag="favorites"):
  try:
    tag = request.REQUEST['tag']
  except:
    tag = "favorites"
  photos = get_photos(tags=tag)
  return render_to_response('mosaic.html', {'photos':photos})
Пример #2
0
def index(request):
  photos = get_photos()

  return render_to_response('index.html', {'photos':photos})