title: What is the best practice to let users set a variable which is then be available for all views?
body: <p>The app I'm working on is a kind of an internal portal for the big Holding (Group of Companies), where various financial and non-financial data stored for all the companies of the Holding. Users are logging into the portal and on the home page they see the list of all Companies that they are authorized to see.</p>
  <p>Then user should be able to enter into one particular Company from the list and afterwards all subsequent views should show data filtered only for that selected Company until user does not exit it and enter into another Company from home page.</p>
  <p>I'm trying to achieve this functionality by following but I'm not sure is it proper django way to do it:</p>
  <ol>
  <li>In views.py I have Mylogin view which is setting global variable Selected_Company='None' when User logs in.</li>
  <li>Then when User selects any particular Company to work with that Selected_Company variable gets that company's name as a value.</li>
  <li>All other views which show company related data have a django filter showing model objects matching with the value of Selected_Company.</li>
  </ol>
  <p>If you know any other proper way to do it, I'd appreciate your advice.
  Thx</p>