Skip to main content

Simple, modular wiki sites with Django

Project description

Thorson Wiki is a simple Django wiki framework. It allows developers to create one or more wikis quickly and easily. The framework is designed to be both extensible and easy to work with—it provides basic functionality for simple cases, and an advanced API for more complex cases.

Installation

The easiest way to install Thorson Wiki is with either pip or easy_install.

  1. Install the package:

    pip install thorson_wiki

  2. Add thorson_wiki to INSTALLED_APPS in your Django settings.

  3. Run manage.py migrate to synchronize your database.

Creating a Wiki

To create a wiki, you must first tell Thorson Wiki some information about the wikis that you want to create. This is done using the THORSONWIKI_NAMESPACES setting. This setting is a dictionary mapping namespace names to information about that namespace. An example is given below, containing only the required settings.

THORSONWIKI_NAMESPACES = {
    'mywiki': {
        'title': "My Wiki",
        'description': "A wiki designed by me, for me.",
        'author': "Jacob Collard",
        'landing': "Home Page",
    }
}

The title attribute provides a human-readable title for your wiki namespace. This appears in most of the templates in the nav bar. The description appears in the description <meta> tag in the template HTML. Likewise, the author appears in the author <meta> tag. landing is the name of the Wiki’s landing page.

If you are using the default templates, it is also recommended that you add the following settings:

THORSONWIKI_DEFAULT_NAMESPACE = 'mywiki'

LOGIN_URL = reverse_lazy(THORSONWIKI_DEFAULT_NAMESPACE + 'login')
LOGIN_REDIRECT_URL = reverse_lazy(THORSONWIKI_DEFAULT_NAMESPACE + ':main')

The next thing you need to do is tell your project the URLs for your wiki. Simple import include_wiki from thorson_wiki.urls and add the following to your urlpatterns:

url(r'^my_base_url/', include_wiki('mywiki'))

This will automatically generate URLs beginning with my_base_url that relate to the wiki mywiki. Simply navigate to my_base_url, and you will find your wiki is in operation. Note that if you haven’t yet created the landing page, you will be prompted to do so when you visit the wiki.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ThorsonWiki-0.1a10.tar.gz (418.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ThorsonWiki-0.1a10-py2.py3-none-any.whl (434.4 kB view details)

Uploaded Python 2Python 3

File details

Details for the file ThorsonWiki-0.1a10.tar.gz.

File metadata

  • Download URL: ThorsonWiki-0.1a10.tar.gz
  • Upload date:
  • Size: 418.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for ThorsonWiki-0.1a10.tar.gz
Algorithm Hash digest
SHA256 8e7c4af4afbb7fa0c528c63354780c06b8591679d81989d4c0aa4b9de17e2201
MD5 39a76a905fbbb3848242b1549635c438
BLAKE2b-256 0caf496400607f28dcbe5800acb6157f3198bb5034e5ec50a1e187adca0bf3a2

See more details on using hashes here.

File details

Details for the file ThorsonWiki-0.1a10-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for ThorsonWiki-0.1a10-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 24a85ea9688064e12bb15bdcbc37fcfc7fabbf177dee80ec91233388f8c2bb56
MD5 1b1daf0affe2580ecf1b86b7263c23ad
BLAKE2b-256 2861b3599ab6faceb05386a2c443d85749fabb96df7f3116d8ffd462224667cd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page