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})
def index(request): photos = get_photos() return render_to_response('index.html', {'photos':photos})