django messages display once code example
Example: django messages
from django.contrib import messages
messages.add_message(request, messages.INFO, 'Hello world.')
from django.contrib import messages
messages.add_message(request, messages.INFO, 'Hello world.')