a simple django wiki based on django-markupfield
Go to file
2010-04-07 17:07:41 -04:00
example more view tests 2010-04-07 17:07:23 -04:00
markupwiki fixed redirect view 2010-04-07 17:07:41 -04:00
CHANGELOG fix lock grab on releasing a non-existent lock 2010-04-07 12:20:05 -04:00
LICENSE commit dist files 2010-03-31 17:48:06 -04:00
MANIFEST.in commit dist files 2010-03-31 17:48:06 -04:00
README.rst switch create missing articles default 2010-04-06 18:14:41 -04:00
requirements.txt importing old work 2010-03-30 10:43:30 -04:00
setup.py commit dist files 2010-03-31 17:48:06 -04:00
TODO fix lock grab on releasing a non-existent lock 2010-04-07 12:20:05 -04:00

=================
django-markupwiki
=================

An implementation of simple markup-agnostic wiki for Django.

markupwiki does not aim to be a full fledged replacement to mediawiki or other
large packages, but instead to provide the most commonly used subset of
functionality.  Pages can be edited, locked, and deleted.  Revisions can be
viewed, reverted, and compared.  If you need much more than that markupwiki
might not be for you.


Requirements
------------

django-markupwiki depends on django 1.2+, django-markupfield 1.0.0b+ and
libraries for whichever markup options you wish to include.


Settings
========


``MARKUPWIKI_WRITE_LOCK_SECONDS`` - number of seconds that a user can hold a
write lock (default: 300)

``MARKUPWIKI_CREATE_MISSING_ARTICLES`` - if True when attempting to go to an
article that doesn't exist, user will be redirected to the /edit/ page.  If
False user will get a 404. (default: True)

``MARKUPWIKI_DEFAULT_MARKUP_TYPE`` - default markup type to use
(default: markdown)

``MARKUPWIKI_MARKUP_TYPE_EDITABLE`` - if False user won't have option to change
markup type (default: True)

``MARKUPWIKI_MARKUP_TYPES`` - a tuple of string and callable pairs the 
callable is used to 'render' a markup type.  Example::

    import markdown
    from docutils.core import publish_parts

    def render_rest(markup):
        parts = publish_parts(source=markup, writer_name="html4css1")
        return parts["fragment"]

    MARKUPWIKI_MARKUP_TYPES = (
        ('markdown', markdown.markdown),
        ('ReST', render_rest)
    )

Defaults to ``django-markupfield``'s detected markup types.