title: TemplateDoesNotExist at / index.html After dividing settings.py into 3seperate files
body: <p>I was working on a Django project.</p>
  <p>my <code>urls.py</code>:</p>
  <pre><code>urlpatterns = [
      path('', index, name='index')
  ]
  </code></pre>
  <p>my <code>views.py</code>:</p>
  <pre><code>def index(request):
      return render(request, 'index.html')
  </code></pre>
  <p>in my <code>settings.py</code>:</p>
  <pre><code>TEMPLATES = [
      {
          'BACKEND': 'django.template.backends.django.DjangoTemplates',
          'DIRS': [(BASE_DIR / &quot;templates&quot;)],
          '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><strong>Till this point, all works perfectly</strong>, the template also rendered as it should. Now I approach to divide my <code>settings.py</code> into 3 separate files for my production purpose like:</p>
  <pre><code>Settings (Folder)
    | base.py
    | development.py
    | production.py
  </code></pre>
  <p>Here the <code>base.py</code> contains almost all necessary settings, <code>development.py</code> and <code>production.py</code> inherit the <code>base.py</code> and have only <code>allowed host</code> and <code>debug</code> values. <code>development.py</code> and <code>production.py</code> are also properly hooked up with <code>manage.py</code> and <code>wsgi.py</code> file of the project.</p>
  <p>Now after this work it shows me an error like:</p>
  <pre><code>TemplateDoesNotExist at / index.html
  </code></pre>
  <p>I also try with</p>
  <pre><code>def index(request):
          return HttpResponse(&quot;Hello, world. You're at the diagnosis index.&quot;)
  </code></pre>
  <p>It also works perfectly! maybe it only has problem with template/Base dir. Please suggest how can I fix this?</p>