Feed Sign in with OpenID OpenID

Simon Willison’s Weblog

DebugFooter middleware with Pygments sql syntax highlighting. Andreas Marr has enhanced my Django DebugFooter middleware with proper syntax highlighting for the logged SQL.

2 comments

  1. heh - that was me ;) It was a slow friday afternoon and i worked through nearly all middleware-snippets on djangosnippets.org. Somehow i got stuck on sql-logging (worked with ruby on rails the whole week and wanted sql properly somewhere in django - ror has something like this in the log-files as well).
    So i also have modified snippet somewhere to syntax hightlight console sql output ;)

    Btw, i wasn't sure if you were 'the' simon ;) Met you once in berlin. oct 2007, i think...

    cheers

    monolar - 15th June 2008 00:17 - #

  2. Duly credited. I wish djangosnippets would make it easier to find out the contributor's actual name. And yes, we definitely met last year in Berlin.

    Simon Willison - 15th June 2008 11:46 - #

Sign in with OpenID

Auto-HTML: Line breaks are preserved; URLs will be converted in to links.

Manual XHTML: Enter your own, valid XHTML. Allowed tags are a, p, blockquote, ul, ol, li, dl, dt, dd, em, strong, dfn, code, q, samp, kbd, var, cite, abbr, acronym, sub, sup, br, pre

A django site