Skip to main content

A django-wiki plugin that MediaWiki style template implemented.

Project description

wiki is is a rewrite of django-simplewiki, a project from 2009 that aimed to be a base system for a wiki.

Template Plugin

[NEED TO TRANSLATE]

模板插件类似于 MediaWiki 的模板,通过定义模板可在多个文章中使用。

Install

pip install wiki-template and create your django project.

Settings

Insert “wiki_template” to INSTALLED_APPS before “wiki.plugins.*”:

INSTALLED_APPS = (
    'django.contrib.admin',
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.messages',
    'django.contrib.staticfiles',
    'django.contrib.sites',
    'django.contrib.humanize',
    'sekizai',
    'sorl.thumbnail',
    'django_nyt',
    'wiki',
    'wiki.plugins.macros',
    'wiki.plugins.help',
    'wiki.plugins.links',
    'wiki.plugins.images',
    'wiki.plugins.attachments',
    'wiki.plugins.notifications',
    'wiki_template',
    'mptt',
)

[NEED TO TRANSLATE]

设置 WIKI_MARKDOWN_KWARGS 配置项的 “safe_mode” 键为 False,这样可以在文章和模板中使用html标签:

WIKI_MARKDOWN_KWARGS = {
    #'extensions': [
    #    ....
    #],
    "safe_mode": False,
}

Bug report

Any issues report to Github.

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

wiki-template-0.2.tar.gz (19.8 kB view hashes)

Uploaded Source

Built Distribution

wiki_template-0.2-py2.py3-none-any.whl (30.5 kB view hashes)

Uploaded Python 2 Python 3

Supported by

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