Skip to main content

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

  1. Install with pip install django-markdown-view.

  2. Add 'markdown_view' to your INSTALLED_APPS setting.

    INSTALLED_APPS = [
        ...,
        'markdown_view',
        ...
    ]
  3. (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"),

Authors

Wharton Computing

  • Ryan J. Sullivan

Other

Changelog

0.0.1 (2020-06-16)

  1. 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 details)

Uploaded Source

Built Distribution

django_markdown_view-0.0.1-py2.py3-none-any.whl (13.4 kB view details)

Uploaded Python 2 Python 3

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

Hashes for django-markdown-view-0.0.1.tar.gz
Algorithm Hash digest
SHA256 54d86a97ab9f73f50b626022c1d39c656bc35f48f120acc2a23ef7b652f4d0c7
MD5 11e47998380a1d5d7609459c1b0b0d7f
BLAKE2b-256 a7664f152b37a63d58039cf52d0da58c4dc93e75ce8186f0b3d60135f5e9d3aa

See more details on using hashes here.

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

Hashes for django_markdown_view-0.0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 0f351411821138dbd6d76be7f81173b83087f3e6a1a3d659d895ca2b582dfeb4
MD5 b1967a4cd1d0ed9b3377a054e6f5eef8
BLAKE2b-256 e9f187c3b32c8be180160e019be0e8b12836522488f2df3db8b81981f2bfe44a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page