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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 2 Python 3

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