added picture in Qi-Gong topic
This commit is contained in:
BIN
cao_blogr.sqlite
BIN
cao_blogr.sqlite
Binary file not shown.
BIN
cao_blogr/static/img/khi-cong-thay.jpg
Normal file
BIN
cao_blogr/static/img/khi-cong-thay.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 27 KiB |
@@ -115,9 +115,11 @@ def topic(request):
|
|||||||
|
|
||||||
# get the topic record
|
# get the topic record
|
||||||
topic_record = BlogRecordService.get_topic_byTopic(request, topic)
|
topic_record = BlogRecordService.get_topic_byTopic(request, topic)
|
||||||
# convertir mardown en HTML
|
# convertir champ topic_quote en HTML
|
||||||
markdowner = Markdown()
|
markdowner = Markdown()
|
||||||
topic_quote = markdowner.convert(topic_record.topic_quote)
|
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
|
# get all the tags of this topic
|
||||||
tags = BlogRecordService.get_tags_byTopic(request, topic)
|
tags = BlogRecordService.get_tags_byTopic(request, topic)
|
||||||
|
|||||||
Reference in New Issue
Block a user