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.
Source Distribution
wiki-template-0.2.tar.gz
(19.8 kB
view details)
Built Distribution
File details
Details for the file wiki-template-0.2.tar.gz
.
File metadata
- Download URL: wiki-template-0.2.tar.gz
- Upload date:
- Size: 19.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f5d09104ff489b01edff198a8d34662530d2f74706eab5b77696deb2ba998402 |
|
MD5 | 7a7d36f0927fe644e6f7baa764584d0b |
|
BLAKE2b-256 | 38928b3d0502497c42e2205e18c0dd86c228ee3c018ee5fda1e75bd12adc171d |
Provenance
File details
Details for the file wiki_template-0.2-py2.py3-none-any.whl
.
File metadata
- Download URL: wiki_template-0.2-py2.py3-none-any.whl
- Upload date:
- Size: 30.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 71171f802d4e93ff2fac0844b154ac1ccfe5a5ff7dc3ad936db1edcab6a04721 |
|
MD5 | a9b4fe6607e0d97b1aaf95e12d52d4e9 |
|
BLAKE2b-256 | a2ed4a1c7847310d37501d300763d3bd8089cde8f137105efc731b8025d14f93 |