예제 #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()
예제 #2
0
def gallery(request):
    albums = get_albums()
    return render(request, 'gallery.html', {'albums': albums})
예제 #3
0
def gallery(request):
    albums = get_albums()
    return render(request, 'gallery.html', {'albums': albums})
예제 #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()