views:

271

answers:

2

I have a Django website in which I want site administrators to be able to edit rich content. Suppose we're talking about an organizational info page, which might include some pictures, and some links, where the page is not as structured as a news page (which updates with news pieces every few days), but still needs the ability to be easily edited by site admins which do not necessarily want to mess with HTML (or rather, I do not want them to).

So where do I put this dynamic content? On the database? In which format? How do I make it accesible in the django default admin?

+3  A: 

Use one of the existing rich-text editors

The lightest weight would be to use something at the js level like DojoEditor:

http://code.djangoproject.com/wiki/AddDojoEditor

See also this thread:

http://stackoverflow.com/questions/329963/replace-textarea-with-rich-text-editor-in-django-admin

ramanujan
+1  A: 

For what you're describing I'd use flatpages, which is a django app that lets users create and edit pages in the admin panel.

As for formatting, I'd use TinyMCE. Integrating it is pretty easy, here is a walkthrough (do steps 1 and 2 and jump to the bottom, "Using TinyMCE with flatpages (newforms)")

Adrian Mester