Forgive me if this question makes little sense; I have had little sleep as of late.
I want to send a notification to the user whenever a signal fires via django's messages module, but I am at a loss as to how to pass the request object to the messages.success method.
I'm doing this because whenever a user gets a badge I need to tell him about it. For example, when a user completes her profile, does a set number of ratings, or makes a certain number of comments a badge is rewarded. Right now the only way for the user to tell that she has a new badge is to go to the badge page, but I want to gently inform the user of the event.
Using django notifications would work, but the system we've got in place would be too jarring (currently it loads a modal) and more expensive since it hits the database.
Thanks in advance.