How do I use Trac wiki formatting in a Django/Python web application?

倖福魔咒の 提交于 2019-12-01 18:08:14

问题


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?


回答1:


The below links shows a snippet which imports trac markup and makes a django template filter from it

http://www.djangosnippets.org/snippets/1047/




回答2:


I have made a plugin for Django-CMS which support Trac wiki syntax, with macros and everything else you expect from Trac:

https://bitbucket.org/mitar/cmsplugin-markup-tracwiki



来源:https://stackoverflow.com/questions/2143805/how-do-i-use-trac-wiki-formatting-in-a-django-python-web-application

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!