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