Beispiel #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
    )
Beispiel #2
0
def photo(static_file, album_slug, slug):
    static_file.content = render('/gallery/photo.html', {
        'photo': models.album(album_slug).photo(slug),
    })
Beispiel #3
0
def album(static_file, slug):
    static_file.content = render('/gallery/album.html', {
        'album': models.album(slug),
    })