معرفی شرکت ها


django-messagegroups-0.4.5


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

Render grouped messages with the Django messaging framework.
ویژگی مقدار
سیستم عامل -
نام فایل django-messagegroups-0.4.5
نام django-messagegroups
نسخه کتابخانه 0.4.5
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Danilo Bargen
ایمیل نویسنده mail@dbrgn.ch
آدرس صفحه اصلی https://github.com/dbrgn/django-messagegroups
آدرس اینترنتی https://pypi.org/project/django-messagegroups/
مجوز MIT
#################### django-messagegroups #################### .. image:: https://secure.travis-ci.org/dbrgn/django-messagegroups.png?branch=master :alt: Build status :target: http://travis-ci.org/dbrgn/django-messagegroups .. image:: https://pypip.in/d/django-messagegroups/badge.png :alt: PyPI download stats :target: https://crate.io/packages/django-messagegroups 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+ :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. Here's a list based example:: {% if messages %} <ul> {% for key, values in messages.items %} <li>Level {{ key.0 }} (Tags: {{ key.1 }}): {{ values|join:" | " }}</li> {% endfor %} </ul> {% endif %} The default HTML class markup is compatible with the `Bootstrap CSS Framework <http://twitter.github.com/bootstrap/>`_ (2/3). Credits ======= Inspired by Ben Tappin (via `mrben.co.uk <http://mrben.co.uk/entry/a-nicer-way-of-using-the-Django-messages-framework/>`__). License ======= The MIT License (MIT) Copyright (c) 2011-2016 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.


نحوه نصب


نصب پکیج whl django-messagegroups-0.4.5:

    pip install django-messagegroups-0.4.5.whl


نصب پکیج tar.gz django-messagegroups-0.4.5:

    pip install django-messagegroups-0.4.5.tar.gz