add photo
This commit is contained in:
BIN
cao_sunyata/static/img/paris-mai-2023.jpg
Normal file
BIN
cao_sunyata/static/img/paris-mai-2023.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 163 KiB |
@@ -367,6 +367,7 @@ def images(request):
|
||||
folder_path = request.registry.settings['images_dir']
|
||||
|
||||
images_list = []
|
||||
# lire tous les fichiers du dossier
|
||||
for f in os.scandir(folder_path):
|
||||
image = []
|
||||
image.append(request.static_url('cao_sunyata:static/img/') + f.name)
|
||||
@@ -416,8 +417,7 @@ def images(request):
|
||||
'images_list': images_list,
|
||||
}
|
||||
|
||||
@view_config(route_name='image_edit',
|
||||
renderer='cao_sunyata:templates/image_edit.jinja2')
|
||||
@view_config(route_name='image_edit', renderer='cao_sunyata:templates/image_edit.jinja2')
|
||||
def image_edit(request):
|
||||
filename = request.matchdict['filename']
|
||||
|
||||
|
||||
Reference in New Issue
Block a user