Hi all! I started to write a cron job, which sends reminders to users, but run into the following:
I do not know how to set the current language in this situation. Setting settings.LANGUAGE_CODE has no effect. Note, that not only the text in the mail should be different, but it contains model data, and the model is aware of the current language (uses get_language() to figure it out). According to the docs here: http://docs.djangoproject.com/en/dev/topics/i18n/#id2 as I have no session, no request, no cookies, no http headers (it's a cron job), the only chance is to look up the LANGUAGE_CODE for django. thanks Gergo --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---

