Skip to content

Python-Markdown/dingus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Python-Markdown Dingus

A simple site for testing Python-Markdown. Visit https://waylan.pythonanywhere.com/dingus for a live demo.

A backend which conforms to Babelmark2's API is also provided at the URL: /bablemark.

Setup

To set up a dev environment, clone this repo and create a virtual environment. Then install the dependencies.

python -m venv venv
. venv/bin/activate
pip install -r requirements.txt

After a new release of Python-Markdown has been made, update with:

pip install -U markdown

Running the server

To run a local instance of the server for development and testing:

python dingus.py

Then point your browser at http://localhost:8080/dingus.

To run a production instance you need to deploy a bottle server. For instance, to configure a basic wsgi server, first ensure dingus.py is on your Python path. Then create a wsgi configuration file as follows:

import bottle
import dingus
application = bottle.default_app()

See the documentation for your specific server for instructions on pointing your server at the application in your wsgi configuration file.

Copyright

Markdown and Dingus Copyright © 2004 John Gruber
Additions and Modifications to Dingus (extension support, etc.) Copyright © 2012-2023 Waylan Limberg