Serve .md pages as Django templates.
Project description
Django Markdown View
Serve .md pages as Django templates.
Requirements
Tested with:
Python: 3.5, 3.6, 3.7, 3.8
Django: 2.0, 2.1, 2.2, 3.0
Installation
Install with pip install django-markdown-view.
Add 'markdown_view' to your INSTALLED_APPS setting.
INSTALLED_APPS = [ ..., 'markdown_view', ... ]
(OPTIONAL) Add BASE_DIR setting (dictionary of app base), for example:
BASE_DIR = os.path.dirname(os.path.dirname(os.path.dirname(__file__)))
Usage
Views
Use one of MarkdownView, LoggedInMarkdownView, or StaffMarkdownView to serve a .md file
from markdown_view import StaffMarkdownView
path('readme/',
StaffMarkdownView.as_view(file_name='my_app/README.md'),
name="readme"),
Changelog
0.0.1 (2020-06-16)
Initial release.
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
django-markdown-view-0.0.1.tar.gz
(10.6 kB
view hashes)
Built Distribution
Close
Hashes for django-markdown-view-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 54d86a97ab9f73f50b626022c1d39c656bc35f48f120acc2a23ef7b652f4d0c7 |
|
MD5 | 11e47998380a1d5d7609459c1b0b0d7f |
|
BLAKE2b-256 | a7664f152b37a63d58039cf52d0da58c4dc93e75ce8186f0b3d60135f5e9d3aa |
Close
Hashes for django_markdown_view-0.0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0f351411821138dbd6d76be7f81173b83087f3e6a1a3d659d895ca2b582dfeb4 |
|
MD5 | b1967a4cd1d0ed9b3377a054e6f5eef8 |
|
BLAKE2b-256 | e9f187c3b32c8be180160e019be0e8b12836522488f2df3db8b81981f2bfe44a |