Hi,
background: The view is called when a payment service pings back a payment outcome behind the scenes - afterwhich I need to send an email in the right language to confirm payment and so on. I can get the language code back in the request from the payment server and would like to use that along with Django's i18n systems to determine which language to send my email out in.
So I need to set the language of my django app from within a view. And then do my template rendering and emailing all in one go.
setting request.session['django_language'] = lang
only effects the next view when I'm testing.
Is there any other way to do it?
Cheers,
Guy