Skip to main content

Render grouped messages with the Django messaging framework

Project description

Build status PyPI download stats

This Django app provides a template tag to render all messages (sent via the Django messaging framework) and to display them grouped by category.

Since tag v0.2, django-messagegroups is compatible with Bootstrap 1, and since v0.3, it uses Bootstrap 2 markup.

Install

The best way to install django-messagegroups is using pip:

pip install django-messagegroups

To get the current development version, you can install the version from Github:

pip install -e git://github.com/dbrgn/django-messagegroups.git#egg=messagegroups

Finally add messagegroups to your INSTALLED_APPS setting.

Usage

{% load messagegroups %}
...
{% render_messages messages %}

Customize

You can customize the template by overriding the messagegroups.html template.

The HTML class markup is compatible with the Bootstrap CSS Framework (v2).

Credits

Inspired by Ben Tappin (via mrben.co.uk).

License

Copyright 2011-2012 Danilo Bargen (http://dbrgn.ch/)

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this program. If not, see <http://www.gnu.org/licenses/lgpl.html>.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-messagegroups-0.3.0.tar.gz (5.1 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page