Render grouped messages with the Django messaging framework
Project description
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.
- Django support:
1.4–1.7
- Python support:
2.6–2.7, 3.3+
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-2014 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
Built Distributions
File details
Details for the file django-messagegroups-0.4.4.tar.gz
.
File metadata
- Download URL: django-messagegroups-0.4.4.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d90b797123f6de854103b6bf3c27755b8f12a90e3c2b2835c2699b357a5cadd4 |
|
MD5 | d6a46831a25877bc05f24315a52696b0 |
|
BLAKE2b-256 | f61a663271fdbfe1f658983ccb3134a5f03f13dbd48dd48fd501c0ca5cfe24ff |
File details
Details for the file django_messagegroups-0.4.4-py3-none-any.whl
.
File metadata
- Download URL: django_messagegroups-0.4.4-py3-none-any.whl
- Upload date:
- Size: 7.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c0ec8c55d5148c2e2a4088c8718873525dbbe2306b9461a014fde04dd1e072e |
|
MD5 | 4a507f643c14dfe3bcf505e15a3547c8 |
|
BLAKE2b-256 | b59763ba42dbce702bdedd48159f8bf9e09e4b3e93d4816d3c6e1683d31c35b6 |
File details
Details for the file django_messagegroups-0.4.4-py2-none-any.whl
.
File metadata
- Download URL: django_messagegroups-0.4.4-py2-none-any.whl
- Upload date:
- Size: 7.2 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 502b46fe70e3a8b03b5b4f0bb73b34b4584e2b67b36978c05f98477b5901aed0 |
|
MD5 | d0cd1a83ba1e7269f2b3b388032029b5 |
|
BLAKE2b-256 | 98cb3a8474812958c904335737e9c0b797695c624fcb5f65b2e6b9a98742540c |