/waliki

A wiki engine powered by Django and Git

Primary LanguagePythonBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

Waliki is an extensible wiki app for Django with a Git backend.

Attention!

It's in an early development stage. I'll appreciate your feedback and help.

https://badge.fury.io/py/waliki.png https://travis-ci.org/mgaitan/waliki.png?branch=master https://coveralls.io/repos/mgaitan/waliki/badge.png?branch=master Documentation Status Wheel Status
home:https://github.com/mgaitan/waliki/
demo:http://waliki.pythonanywhere.com
documentation:http://waliki.rtfd.org
twitter:@Waliki_ // @tin_nqn_
group:https://groups.google.com/forum/#!forum/waliki-devs
license:BSD

At a glance, Waliki has these features:

  • File based content storage.
  • UI based on Bootstrap and CodeMirror
  • Version control and concurrent edition for your content using git
  • An extensible architecture through plugins
  • reStructuredText or Markdown support, configurable per page (and it's easy to add extensions)
  • A very simple per slug ACL system
  • A nice attachments manager (that respects the permissions over the page)
  • Realtime collaborative edition via togetherJS
  • Wiki content embeddable in any django template (as a "dummy CMS")
  • Few helpers to migrate content (particularly from MoinMoin, using moin2git)
  • It works with Python 2.7, 3.3, 3.4 or PyPy in Django 1.6 or newer

It's easy to create a site powered by Waliki using the preconfigured project which is the same code that motorize the demo.

Waliki was inspired in Github's wikis, but it tries to be a bit smarter than many others git backed wiki engines at handling changes: instead of a hard "newer wins" or "page blocking" approaches, Waliki uses git's merge facilities on each save. So, if there was another change during an edition and git can merge them automatically, it's done and the user is notified. If the merge fails, the last edition is still saved but the editor is reloaded asking the user to fix the conflict.

Getting started

Install it with pip:

$ pip install waliki[all]

Or the development version:

$ pip install https://github.com/mgaitan/waliki/tarball/master

Add waliki and the optionals plugins to your INSTALLED_APPS:

INSTALLED_APPS = (
    ...
    'waliki',
    'waliki.git',           # optional but recommended
    'waliki.attachments',   # optional but recommended
    'waliki.pdf',           # optional
    'waliki.slides',        # optional
    'waliki.togetherjs',    # optional
    ...
)

Include waliki.urls in your project's urls.py. For example:

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

Sync your database:

$ python manage.py migrate   # syncdb in django < 1.7

Tip

Do you already have some content? Put it in your WALIKI_DATA_DIR (or set it to the actual path) and run:

$ python manage.py sync_waliki

Do you want everybody be able to edit your wiki? Set:

WALIKI_ANONYMOUS_USER_PERMISSIONS = ('view_page', 'add_page', 'change_page')

in your project's settings.

Why Waliki ?

Waliki is an Aymara word that means all right, fine.

It sounds a bit like wiki, has a meaningful sense and also plays with the idea of using a non-mainstream language [1] .

And last but most important, it's a humble tribute to the president Evo Morales and the Bolivian people.

[1]wiki itself is a hawaiian word