Debugging Django in Production

This neat trick by Eric Holscher is simply awesome. By adding a little middleware in your Django application, you can have your production server show authenticated superusers the proper error messages while blocking everyone else with the default 500 page. This is going to become another one of those can’t-do-without techniques for me.

Visit the bookmark »

Speak Your Mind

  • Your address won't be shown, it will be used for Gravatar icons if available.

  • Markdown is allowed.

Header 1    Header 2
========    --------

*italic*    **bold**

> A single level blockquote
>> A nested quote

A link: [example](http://url.com "title")
Or a quick URL: <http://url.com>

1. Numbered list item 1
2. Numbered list item 2

* Unordered list item 1
* Unordered list item 2

Any paragraph with 4 spaces to 
the left is a preformatted code block

Language specific code blocks with 
syntax highlighting are supported too:

@@ python
import antigravity
@@ end