Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

displaying flash message django

{% if messages %}
<ul class="messages">
    {% for message in messages %}
    <li{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message }}</li>
    {% endfor %}
</ul>
{% endif %}
Source by docs.djangoproject.com #
 
PREVIOUS NEXT
Tagged: #displaying #flash #message #django
ADD COMMENT
Topic
Name
8+5 =