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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Filename, size | File type | Python version | Upload date | Hashes |
---|---|---|---|---|
Filename, size wiki_template-0.1-py2.py3-none-any.whl (34.4 kB) | File type Wheel | Python version py2.py3 | Upload date | Hashes View |
Close
Hashes for wiki_template-0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eceb72e8a6d229ed00fcb3b20f239e8a4cded6cdcab7cd67ee91557bd568babe |
|
MD5 | 38daa289e84201d2cece7815b8925bdf |
|
BLAKE2-256 | b1738511824b3647a1aafbaff86706bdb7d6545b1076152c1f1eaf8873f305e5 |