Never been to DZone Snippets before?

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

About this user

John http://www.red91.com

« Newer Snippets
Older Snippets »
Showing 1-1 of 1 total  RSS 

use markdown with django

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.

   1  
   2  ..load
   3  {% load markup %}
   4  
   5  ..then use
   6  {{ post.body|markdown }}
« Newer Snippets
Older Snippets »
Showing 1-1 of 1 total  RSS