Changes between Version 1 and Version 2 of UsingMarkup


Ignore:
Timestamp:
12/03/05 05:34:55 (9 years ago)
Author:
ubernostrum
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • UsingMarkup

    v1 v2  
     1= CookBook - Using Markup Filters in Models =
     2
    13The markup application (django.contrib.markup) is pretty handy for using filters like Textile or Markdown in your templates, but have a slight downside: every time a page is generated, you have to run the markup filter over the text, which may or may not be an acceptable performance hit. You could, if you wanted, just define a _pre_save hook which applies the filter to incoming text so it gets saved to your DB as HTML, but then you're in a pickle if you want to edit it again later. What to do, then?
    24
Back to Top