如何在Django / Python Web应用程序中使用Trac wiki格式? [英] How do I use Trac wiki formatting in a Django/Python web application?
问题描述
更新:
看起来我有点仓促,我的投票关闭 - 而另一张票看起来相似,我的问题更多的是Trac wiki格式。感谢petantik的链接!
类似的问题: 我可以在哪里可以获得一个维基格式化小部件用于我的django应用程序?
以下链接显示一个代码片段,导入trac标记,并从中生成一个django模板过滤器
< a href =http://www.djangosnippets.org/snippets/1047/ =noreferrer> http://www.djangosnippets.org/snippets/1047/
I have a Python web application (Django, specifically). I'm reading in some data from a Trac database (where the descriptions use wiki formatting) and displaying it as HTML. I considered the markdown module, but realised that Trac wiki formatting and markdown are really quite different. Is there a module for Django, or a Python package that supports the wiki formatting that Trac uses?
Update:
Looks like I was a little hasty with my vote to close - while the other ticket looks similar, my question is more to do with Trac wiki formatting. Thanks to petantik for the link!
Similar question: Where can i get a wiki formatting widget for my django application?
The below links shows a snippet which imports trac markup and makes a django template filter from it
http://www.djangosnippets.org/snippets/1047/
这篇关于如何在Django / Python Web应用程序中使用Trac wiki格式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!