如何在Django / Python Web应用程序中使用Trac wiki格式? [英] How do I use Trac wiki formatting in a Django/Python web application?

查看:134
本文介绍了如何在Django / Python Web应用程序中使用Trac wiki格式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Python Web应用程序(具体来说是Django)。我正在从Trac数据库中读取一些数据(其中的描述使用 wiki格式)和将其显示为HTML。我考虑了降价模块,但意识到Trac的wiki格式和降价真的很不一样。 Django还有一个支持Trac使用的wiki格式的Python软件包?



更新:



看起来我有点仓促,我的投票关闭 - 而另一张票看起来相似,我的问题更多的是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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆