DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

John has posted 18 posts at DZone. View Full User Profile

Use Markdown With Django

08.13.2008
| 5345 views |
  • submit to reddit
        http://www.freewisdom.org/projects/python-markdown/Django

Install markdown and make sure it is in your python path. 

http://www.freewisdom.org/projects/python-markdown/Installation

Include 'django.contrib.markup' in INSTALLED_APPS in your settings.py file.

..load
{% load markup %}

..then use
{{ post.body|markdown }}