Hi, I'm trying to get askbot working with Django 1.4 and am having some issue with the deprecated user.message_set.create() method, which is what is used for notifying a user when they have been awarded a badge. To update this to the new Django 1.4 messaging framework, you would need to use messages.success(request, msg). However this is called within notify_award_message which is called after saving an Award instance, so there is no reference to request. Any ideas how to get this, and any other areas in askbot code using the old messaging method, working?
I think that we'll have to create a clone of the old messaging framework, because we need persistent messages, even when other apps might be ok with session or cookie-based messages.
Also - as you've rightly noticed - we need to set messages even without access to the
Seems like the django's new messaging API won't work for us.
Create your Q&A site at askbot.com. Managed Askbot hosting at just $15/mo. Dedicated hosting, support contracts, consulting services.create your Q&A site
Asked: 2012-07-26 03:58:38 -0500
Seen: 77 times
Last updated: Jul 26 '12