Hi guys, How do I add a message (Django 1.2 style) each page load, and have it cleared after the request?
I set up a middleware running on process_request, but I end up with a bunch of messages in the admin interface. My code: class BetaMessageSet(object): def process_request(self, request): if request.user.is_authenticated and not request.user.is_superuser: if not settings.DEBUG: return None messages.set_level(request, messages.DEBUG) beta_message = """My message"" messages.add_message(request, messages.DEBUG, beta_message) return None -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.