title: 'DIRS': [os.path.join(BASE_DIR, 'myfolder', 'templates'),], NameError: name 'os' is not defined - Django
body: <p>I have installed python3, pip3 and created virtualenv for my project and then installed django. I have installed needed packages and when I am trying to run this command in terminal 
  <code>./manage.py syncdb --settings=myfolder.settings.local</code> </p>
  
  <p>I get this error</p>
  
  <pre><code>'DIRS': [os.path.join(BASE_DIR, 'myfolder', 'templates'),], NameError: name 'os' is not defined 
  </code></pre>
  
  <p>I have read some comments to add <code>import os</code> in top of my setting.py file an to add <code>BASE_DIR = os.path.dirname(os.path.abspath(__file__))</code></p>
  
  <p>I have that already in my settings file but still I'm getting same error. 
  How can I solve it?</p>