title: TemplateDoesNotExist | django 3.0.1 ,python 3.6
body: <p>I am new to Django , I'm working on system Windows 10 , Django version 3.0.1 ,python 3.6 I tried to use all the relevant solutions provided for this problem , but unfortunately none of those resolve my problem .
  I made a folder named <strong>templates</strong> in <strong>myapp</strong> and <strong>"index.html"</strong> inside it, I write some lines of code in my <strong>views.py</strong> file as</p>
  
  <pre><code>from django.shortcuts import render  
  from django.http import HttpResponse
  from django.template import loader 
  def index(request):
      template = loader.get_template('index.html')
      return HttpResponse(template.render())
  </code></pre>
  
  <p>here is my <strong>settings.py</strong> </p>
  
  <pre><code>BASE_DIR = (os.path.dirname(os.path.abspath(__file__))
  
  
  
  TEMPLATES = [
      {
          'BACKEND': 'django.template.backends.django.DjangoTemplates',
          'DIRS': [os.path.join(BASE_DIR, 'templates')],
          '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>**Traceback error **</p>
  
  <pre><code>Template loader postmortem
  Django tried loading these templates, in this order:
  
  Using engine django:
      * django.template.loaders.filesystem.Loader: E:\djangoLearning\myproject\myapp\templates\index.html (Source does not exist)
      * django.template.loaders.app_directories.Loader: E:\djangoLearning\djangoenv\lib\site-packages\django\contrib\admin\templates\index.html (Source does not exist)
      * django.template.loaders.app_directories.Loader: E:\djangoLearning\djangoenv\lib\site-packages\django\contrib\auth\templates\index.html (Source does not exist)
      * django.template.loaders.app_directories.Loader: E:\djangoLearning\myproject\myapp\templates\index.html (Source does not exist)
  
  
  
  Traceback (most recent call last):
    File "E:\djangoLearning\djangoenv\lib\site-packages\django\core\handlers\exception.py", line 34, in inner
      response = get_response(request)
    File "E:\djangoLearning\djangoenv\lib\site-packages\django\core\handlers\base.py", line 115, in _get_response
      response = self.process_exception_by_middleware(e, request)
    File "E:\djangoLearning\djangoenv\lib\site-packages\django\core\handlers\base.py", line 113, in _get_response
      response = wrapped_callback(request, *callback_args, **callback_kwargs)
    File "E:\djangoLearning\myproject\myapp\views.py", line 9, in index
      template = loader.get_template('index.html')
    File "E:\djangoLearning\djangoenv\lib\site-packages\django\template\loader.py", line 19, in get_template
      raise TemplateDoesNotExist(template_name, chain=chain)
  
  Exception Type: TemplateDoesNotExist at /index/
  Exception Value: index.html
  
  </code></pre>
  
  <p>workng directory </p>
  
  <pre><code>myproject
  myapp
    templates
        index.html
  </code></pre>