title: django - use locale out of view
body: <p>I am sending emails (in an async way, so no reference to a <code>request</code> object), and I'd like the locale to be set to something else that the default. In particular, I'd like to change the decimal separators.</p>
  
  <p>I guess the ideal thing would be that I store in the user model the preferred locale, so that I can use it whenever I want when I perform some action related to that user.</p>
  
  <p>Yet, I don't know how to tell my email template which locale to use.</p>
  
  <p>So 2 questions:</p>
  
  <ul>
  <li>Where to get the locale of a user (so that I can store it and use it later)?</li>
  <li>More importantly, knowing that I want eg. French locale, how to tell my template to use it to display decimal numbers?</li>
  </ul>