Exemplo n.º 1
0
def album_list(request, album_id):
    for album in get_albums():
        if album.gphoto_id.text == album_id:
            photos = get_photos(album)
            return render(request, 'album.html', {
                'photos': photos,
                'album': album
            })
    raise Http404()
Exemplo n.º 2
0
def gallery(request):
    albums = get_albums()
    return render(request, 'gallery.html', {'albums': albums})
Exemplo n.º 3
0
def gallery(request):
    albums = get_albums()
    return render(request, 'gallery.html', {'albums': albums})
Exemplo n.º 4
0
def album_list(request, album_id):
    for album in get_albums():
        if album.gphoto_id.text == album_id:
            photos = get_photos(album)
            return render(request, 'album.html', {'photos': photos, 'album': album })
    raise Http404()