logo

What do you think about this example?

Δ All posts

Django Announcements App

26 May 2010

Source: django-announcements @ github

I made this app because I needed a quick way to communicate with the users of my awesome mtg decks community, TappedOut.net. But I needed flexibility--I wanted certain messages to expire after a certain time, certain messages to appear on the homepage, others to appear in sub-pages, or maybe ALL urls. And I want users to be able to dismiss the messages--all with minimum invasiveness to my current project.

So I decided on a mix between the django.contrib.flatpages and django.contrib.messages -- a messaging system that you can throw at any url, and set to a specific level (warning, info, etc). What I came up with works great.

Currently, there's brosner's django-announcements but it didn't have the features I wanted (dismissing messages, expiring messages).

Essays

View all