Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

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.

Files for wiki-template, version 0.2
Filename, size File type Python version Upload date Hashes
Filename, size wiki_template-0.2-py2.py3-none-any.whl (30.5 kB) File type Wheel Python version 3.5 Upload date Hashes View hashes
Filename, size wiki-template-0.2.tar.gz (19.8 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page