In my app, whenever a question is deleted, it shows a django message that question is deleted.
Related code is:
from django.contrib import messages
msg= _('Question is deleted')
messages.info(request, msg)
The message gets displayed as desired, however I want Display message to last longer say for minimum 10 sec. or till the user clicks on it.
In django docs saw expiration of messages but still could not figure out, and I have nothing like message storage which i can set to false.
Help appreciated :)
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…