Exemplo n.º 1
0
def _image_filename(album_slug, slug):
    return os.path.join(
        settings.DATA_DIR,
        'gallery',
        'images',
        album_slug,
        models.album(album_slug).photo(slug).filename
    )
Exemplo n.º 2
0
def photo(static_file, album_slug, slug):
    static_file.content = render('/gallery/photo.html', {
        'photo': models.album(album_slug).photo(slug),
    })
Exemplo n.º 3
0
def album(static_file, slug):
    static_file.content = render('/gallery/album.html', {
        'album': models.album(slug),
    })