title: TemplateDoesNotExist error when extending an app template
body: <p>I am having trouble setting up a template (under app directory) to extend a base.html that is in the root/templates/jinja2 directory</p>
  
  <p>settings.py</p>
  
  <pre><code>TEMPLATES = [
      {
          'BACKEND': 'django.template.backends.jinja2.Jinja2',
          'DIRS': [
              os.path.join(BASE_DIR, 'templates/jinja2')
          ],
          'APP_DIRS': True,
           ...
          },
      }
  ]
  </code></pre>
  
  <p>folder structure:</p>
  
  <pre><code>apps
  |---app1
      |---templates
          |---jinja2
              |---listing.html
  |---templates
      |---jinja2
          |---base.html
  </code></pre>
  
  <p>listing.html</p>
  
  <pre><code>{% extends "base.html" %}
  ...
  </code></pre>
  
  <p>The error I am getting when I pull listing.html:</p>
  
  <pre><code>TemplateDoesNotExist at ...
  base.html
  
  Django tried loading these templates, in this order:
  
  Using engine django:
  django.template.loaders.app_directories.Loader: /webapps/pickup/env/lib/python3.7/site-packages/django/contrib/admin/templates/base.html (Source does not exist)
  django.template.loaders.app_directories.Loader: /webapps/pickup/env/lib/python3.7/site-packages/django/contrib/auth/templates/base.html (Source does not exist)
  django.template.loaders.app_directories.Loader: /webapps/pickup/src/apps/listing/templates/base.html (Source does not exist)
  </code></pre>
  
  <p>What is the right way to extend to a base template in the root template folder?  I am using Django 3.0.5</p>