how to use message framework in form views 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.')