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 3 5

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page