What's the best way to store versioning when writing a Wiki application?

[亡魂溺海] 提交于 2019-12-25 01:18:46

问题


I'm writing a wiki application which needs searchable version conrol. What's the best data model for this?

I'm writing it in Django, not that that matters much.


回答1:


Let me suggest you not implement version control, but make use of one of the existing implementations. Version control is a lot of work to implement well, and a lot of bother to the user if not implemented well.

See, for example, how ikiwiki does it: it has plugins to abstract away the version control system and supports several, so the user may choose.




回答2:


I'll add svnwiki to the list en.wikipedia.org/wiki/Svnwiki




回答3:


Basically, what you're asking is "how can I implement version control." There are several models for this but the first question to ask is "why are you building a wiki instead of using one of the zillions of existing implementations?"




回答4:


If you're looking for a wiki with source code version control written in python I'd highly recommend trac,

http://trac.edgewall.org/

I'm not sure if they use django, though.

If you're looking instead for a wiki with a built in Document Management System, I have designed and built one (in bash) for my office. As Charlie mentions there is any number of ways to implement this and your implementation probably depends most on how your office operates. If you'd like a lengthy description of how our system works I'd be glad to detail it - just leave a comment and I'll edit this post.



来源:https://stackoverflow.com/questions/873801/whats-the-best-way-to-store-versioning-when-writing-a-wiki-application

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