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/3 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. Just make sure that your app is in the INSTALLED_APPS list before the messagegroups app.

The HTML class markup is compatible with the Bootstrap CSS Framework (2/3).

Credits

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

License

The MIT License (MIT)

Copyright (c) 2011-2013 Danilo Bargen

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

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.4.2.tar.gz (3.5 kB view details)

Uploaded Source

File details

Details for the file django-messagegroups-0.4.2.tar.gz.

File metadata

File hashes

Hashes for django-messagegroups-0.4.2.tar.gz
Algorithm Hash digest
SHA256 75dbc5d668fad3b84574cbb9f4a469b82382aa9301a9c5e80eb8d5342a0d8ea2
MD5 5ddf630e94923dc90be4cc479d5cfb7e
BLAKE2b-256 ebeb43ec78eef3b258ce75ab91fac62c4b8b38a16846588e37beab56e34fae3c

See more details on using hashes here.

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