title: Django Developments Template_DIRS setting failed
body: <p>I was recently trying to learn Django for one of my private project.
  When came to the Chapter on Template,the Django Book recommended setting template path in settings.py using the the following snippet</p>
  <pre><code>TEMPLATE_DIRS = (os.path.join(os.path.dirname(__file__),'templates').replace('\\','/'),)
  </code></pre>
  <p>However ,when I opened the file setting.py I found nothing like &quot;TEMPLATE_DIR&quot; but a list:</p>
  <pre><code>TEMPLATES = [
  {
      'BACKEND': 'django.template.backends.django.DjangoTemplates',
      'DIRS': [os.path.join(os.path.dirname(__file__), 'templates').replace('\\','/'),],
      'APP_DIRS': True,
      'OPTIONS': {
          'context_processors': [
              'django.template.context_processors.debug',
              'django.template.context_processors.request',
              'django.contrib.auth.context_processors.auth',
              'django.contrib.messages.context_processors.messages',
          ],
      },
  },
  </code></pre>
  <p>]</p>
  <p>the the value related to the key &quot;DIR&quot;,was a empty list. So I try to filled it with the content shown above.</p>
  <p>And then, code something in the views.py(all the import was done )</p>
  <pre><code>def current_datetime(request):
    now = datetime.datetime.now()
    t = get_template(&quot;current_datetime.html&quot;)
    html = t.render(Context({&quot;current_date&quot; : now}))
    return HttpResponse(html)
  </code></pre>
  <p>And then mkdir templates in the same folder with setting.py , saved current_datetime.html in folder templates</p>
  <p>Finally,run the project.and got the message in my terminal:</p>
  <blockquote>
  <p>WARNINGS:
  ?: (1_8.W001) The standalone TEMPLATE_* settings were deprecated in Django 1.8 &gt; and the TEMPLATES dictionary takes precedence. You must put the values of the &gt; following settings into your default TEMPLATES dict: TEMPLATE_DIRS.</p>
  <p>System check identified 1 issue (0 silenced).
  June 15, 2017 - 15:32:49
  Django version 1.11.2, using settings 'mysite.settings'
  Starting development server at 127.0.0.1:8000/
  Quit the server with CONTROL-C.</p>
  </blockquote>
  <p>When opened the address (127.0.0.1:8000/time/) in my Safari,here came the
  error message:</p>
  <p><a href="https://i.stack.imgur.com/g2f1S.png" rel="nofollow noreferrer">enter image description here</a></p>
  <p>Anyone help,please ??</p>