diff --git a/cao_blogr.sqlite b/cao_blogr.sqlite index 32dddfe..fbe12ae 100644 Binary files a/cao_blogr.sqlite and b/cao_blogr.sqlite differ diff --git a/cao_blogr/static/img/khi-cong-thay.jpg b/cao_blogr/static/img/khi-cong-thay.jpg new file mode 100644 index 0000000..7b94f0b Binary files /dev/null and b/cao_blogr/static/img/khi-cong-thay.jpg differ diff --git a/cao_blogr/views/blog.py b/cao_blogr/views/blog.py index 650e0b6..b299760 100644 --- a/cao_blogr/views/blog.py +++ b/cao_blogr/views/blog.py @@ -115,9 +115,11 @@ def topic(request): # get the topic record topic_record = BlogRecordService.get_topic_byTopic(request, topic) - # convertir mardown en HTML + # convertir champ topic_quote en HTML 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) # get all the tags of this topic tags = BlogRecordService.get_tags_byTopic(request, topic)