title: Jinja2 throwing templatedoesnotexist error in Django project
body: <p>I'm trying to use jinja2 in my Django project (ver 1.10). After setting it up, once I try to run the project, I get <code>TemplateDoesNotExist at /base/index.html</code> and </p>
  
  <pre><code>Template-loader postmortem
  
  Django tried loading these templates, in this order:
  
  Using engine jinja2:
  This engine did not provide a list of tried templates.
  </code></pre>
  
  <p>In <code>templates</code> folder, I have a base directory where index.html is placed. Moreover, if I use Django's template engine, this same folder structure works perfectly. How can I fix this issue? </p>
  
  <hr>
  
  <p>My config is as follows:</p>
  
  <p>In <code>settings.py</code> (note that I've deliberately excluded the Django template fallback):</p>
  
  <pre><code>TEMPLATES = [
      {
          'BACKEND': 'django.template.backends.jinja2.Jinja2',
          'DIRS': [os.path.join(BASE_DIR, 'templates')],
          'APP_DIRS': True,
          'OPTIONS': {'environment': 'uberfordoc.jinja2.environment',
          }, 
      },
  ]
  </code></pre>
  
  <p>I also have a file called <code>jinja2.py</code> kept in the project folder:</p>
  
  <pre><code>from __future__ import absolute_import 
  from django.contrib.staticfiles.storage import staticfiles_storage
  from django.core.urlresolvers import reverse
  from jinja2 import Environment
  
  
  def environment(**options):
      env = Environment(**options)
      env.globals.update({
          'static': staticfiles_storage.url,
          'url': reverse,
      })
      return env
  </code></pre>