Lithium wiki app

Quick start guide

To get started using the wiki app, follow these steps:

  1. Install the wiki app by adding '' to INSTALLED_APPS.

  2. Run syncdb so that Django will create the wiki tables.

  3. Add the wiki app’s URLs to your project’s

    urlpatterns = patterns('',
            url(r'^wiki/', include('')),


Some of the application’s behavior can be configured by adding the appropriate settings to your project’s settings file.


Default: 1

This is the default permission required to write to a page. You can override this per page inside the administration panel. Here are a list of permissions you can use:

  • 1 = Anonymous (Anonymouse, User, Staff and Superuser may edit)
  • 2 = User (User, Staff and Superuser may edit)
  • 3 = Staff (Staff and Superuser may edit)
  • 4 = Superuser (Only superusers may edit a page)


Default: 50

This is the amount of revisions per page on the page history.



This template will get passed a Page in the template context page.


This template works the same as wiki/page_detail.html, but it uses django.contrib.comments to add discussion to a page.


This template get’s passed a page, and a EditForm.


This template will get passed:

  • page: The page which the revisions belong too.
  • revision_list: The list of revisions, this can be iterated over to display each Revision within.
  • is_paginated: A boolean representing whether the results are paginated. Specifically, this is set to False if the number of revisions is less than or equal to paginate_by.

If the results are paginated, the context will contain these extra variables:

  • paginator: An instance of django.core.paginator.Paginator.
  • page_obj: An instance of django.core.paginator.Page.


This template will get passed a Revision in the template context revision.


This template will get passed:

  • page: The page to which each of these revisions belong to.
  • revisionA: The first revision.
  • revisionB: The second revision.
  • difftext: The HTML difftext.