django get message tag by strung code example
Example 1: from django.contrib import messages
{% if messages %}
{% for message in messages %}
<p id="messages">{{message}}</p>
{% endfor %}
{% endif %}
Example 2: django messages
from django.contrib import messages
messages.add_message(request, messages.INFO, 'Hello world.')