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