Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a good WikiField for django models?

Tags:

Is there a simple way I can add a "WikiField" to a model I have in my application?

I think the most important requirements are:

  • A text field that can be added to any model.
  • simple wiki markup or editor widget that enables text formatting and easy insertion of links and images.
  • saves revision history with author information, and easily allows reverting back to any previous version.

Just to explain what I'm trying to do: Imagine you have a bookstore app. Most of the Book model's data come from the store's catalog. Now we would like to add a block of text that is a community wiki, so that users can write the plot summary for example.

like image 949
Ofri Raviv Avatar asked Jan 04 '10 06:01

Ofri Raviv


1 Answers

How about a combination of django-reversion and django-tinymce, or Markdown if you prefer writing markdown?

I've not come across any field types specifically for Wikis, but with those components writing one really shouldn't take too long.

like image 159
Dominic Rodger Avatar answered Oct 03 '22 23:10

Dominic Rodger