15 views
Skip to first unread message

Gautam Ankul

unread,
Feb 2, 2022, 11:12:16 AM2/2/22
to django...@googlegroups.com
How to use fee due notifications in django something helpe

Kasper Laudrup

unread,
Feb 2, 2022, 11:30:50 AM2/2/22
to django...@googlegroups.com
On 02/02/2022 17.11, Gautam Ankul wrote:
> How to use fee due notifications in django something helpe
>

The same way you use any notifications in django anything hehe
OpenPGP_0xE5D9CAC64AAA55EB.asc
OpenPGP_signature

Prasad Ajmire

unread,
Feb 2, 2022, 11:41:52 AM2/2/22
to django...@googlegroups.com

On Wed, Feb 2, 2022 at 9:42 PM Gautam Ankul <gautam...@gmail.com> wrote:
How to use fee due notifications in django something helpe

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CALKR2n1UW%3DFFdq1NAbEJADyhCxOtg-_g68mtpu-mqPaC7tGLfw%40mail.gmail.com.

sebasti...@gmail.com

unread,
Feb 2, 2022, 11:45:21 AM2/2/22
to Django users
You insert following in your base template:


 {% if messages %}
<div class="row">
    <div class="col-lg-12 col-md-12 col-12">

        {% for message in messages %}
        <div class="alert {% if message.tags %} alert-{{ message.tags }}{% endif %}">{{ message|safe }}
        </div>
        {% endfor %}
        {% endif %}
        {% if form.errors %}
        <div class="alert alert-danger alert-dismissible col-12 mx-1" role="alert">
            <div id="form_errors">
                {% for key, value in form.errors.items %}
                <span class="fieldWrapper">
                    {{ key }}:{{ value }}
                </span>
                {% endfor %}
            </div>
           
        </div>



    </div>
</div>
{% endif %}

Reply all
Reply to author
Forward
0 new messages