From c93d456aa32d706ff83af08d84298d6e5f02f028 Mon Sep 17 00:00:00 2001 From: Phuoc CAO Date: Mon, 23 May 2022 08:41:36 +0200 Subject: [PATCH] =?UTF-8?q?possibilit=C3=A9=20d'afficher=20les=20images=20?= =?UTF-8?q?du=20dossier=20carousel?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cao_blogr/views/blog.py | 4 ++-- cao_blogr/views/default.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cao_blogr/views/blog.py b/cao_blogr/views/blog.py index 6751d7f..61f531e 100644 --- a/cao_blogr/views/blog.py +++ b/cao_blogr/views/blog.py @@ -19,7 +19,7 @@ def blog(request): return HTTPFound(location=request.route_url('home')) # insèrer le path de static/img - body = entry.body.replace('static/img/', "%s/static/img/" % request.application_url) + body = entry.body.replace('static/', "%s/static/" % request.application_url) # convertir mardown en HTML markdowner = Markdown() body_html = markdowner.convert(body) @@ -169,7 +169,7 @@ def topic(request): markdowner = Markdown() topic_quote = markdowner.convert(topic_record.topic_quote) # insèrer le path de static/img - topic_quote = topic_quote.replace('static/img/', "%s/static/img/" % request.application_url) + topic_quote = topic_quote.replace('static/', "%s/static/" % request.application_url) # get all the tags of this topic tags = BlogRecordService.get_tags_byTopic(request, topic) diff --git a/cao_blogr/views/default.py b/cao_blogr/views/default.py index 51f8332..71133ba 100644 --- a/cao_blogr/views/default.py +++ b/cao_blogr/views/default.py @@ -37,7 +37,7 @@ def home(request): # get the Activities section activ = BlogRecordService.get_activities(request) # insèrer le path de static/img - activities = activ.body.replace('static/img/', "%s/static/img/" % request.application_url) + activities = activ.body.replace('static/', "%s/static/" % request.application_url) # get the last created posts last_five = BlogRecordService.get_last_created(request) name = ''