title: Where to setup Python environment attributes for a Django project?
body: <p>For example the Python <code>decimal.Decimal()</code> class has a context. You can view the current context with <code>getcontext()</code> and set new values for precision, rounding, or enable traps.</p>
  
  <p>If you wanted to set a new value for the context so this is visible throughout a Django project, where would be best to do so?</p>
  
  <p>e.g. Throughout the project the <code>FloatOperation</code> signal should be trapped.</p>
  
  <pre><code>from decimal import FloatOperation, getcontext
  
  context = getcontext()
  context.traps[FloatOperation] = True
  </code></pre>
  
  <p>Also using <code>getcontext()</code> return the current context for the <em>active thread</em>. Aside from explicitly creating new threads in a project, are there any additional consideration to make with Django creating additional threads.</p>