Session Based Messages for Django

A snippet that provides a notifications middleware using sessions. This is much more useful than the contrib.auth message system, since it will work with anonymous users as well. It looks like it will make it to the Django’s contrib.sessions at some point (ticket #4604 is almost there), but in the meantime, this stand-alone middleware will do the job.

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