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
Built Distribution
File details
Details for the file django-markdown-view-0.0.1.tar.gz
.
File metadata
- Download URL: django-markdown-view-0.0.1.tar.gz
- Upload date:
- Size: 10.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 54d86a97ab9f73f50b626022c1d39c656bc35f48f120acc2a23ef7b652f4d0c7 |
|
MD5 | 11e47998380a1d5d7609459c1b0b0d7f |
|
BLAKE2b-256 | a7664f152b37a63d58039cf52d0da58c4dc93e75ce8186f0b3d60135f5e9d3aa |
File details
Details for the file django_markdown_view-0.0.1-py2.py3-none-any.whl
.
File metadata
- Download URL: django_markdown_view-0.0.1-py2.py3-none-any.whl
- Upload date:
- Size: 13.4 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0f351411821138dbd6d76be7f81173b83087f3e6a1a3d659d895ca2b582dfeb4 |
|
MD5 | b1967a4cd1d0ed9b3377a054e6f5eef8 |
|
BLAKE2b-256 | e9f187c3b32c8be180160e019be0e8b12836522488f2df3db8b81981f2bfe44a |