title: Template Directory Path
body: <p>I'm new to python. I'm using python 2.7.1 with django 1.5.1.</p>
  <p>When I put this code:</p>
  <p><code>TEMPLATE_DIRS = [os.path.join(BASE_DIR, 'templates')]</code></p>
  <p>in my <code>settings.py</code>, the terminal shows the following error:</p>
  <pre class="lang-none prettyprint-override"><code>File &quot;/home/pipo/Desktop/mysite/mysite/settings.py&quot;, line 116, in &lt;module&gt;
      [os.path.join(BASE_DIR, 'templates')]
  NameError: name 'os' is not defined
  </code></pre>
  <p>Can someone tell me the reason for this error?</p>