title: App Engine : sub folder in templates
body: <p>I'm using <code>template</code> to separate HTML and Python Code. I create templates folder. in this folder, I create index.html. Here is my code :</p>
  
  <pre><code>template_dir = os.path.join(os.path.dirname(__file__),'templates')
  jinja_environment = jinja2.Environment(autoescape=True, loader=jinja2.FileSystemLoader(template_dir))
  
  def render(self, template, **params):
          t = jinja_environment.get_template(template)
          return t.render(params)
  </code></pre>
  
  <p>And using render('index.html') : successful, no problem.</p>
  
  <p>But when I create sub folder : templates/blog and in this folder, I create blog.html. I change the template above from <code>templates</code> to <code>templates/blog</code>. Here is my code : </p>
  
  <pre><code>template_dir = os.path.join(os.path.dirname(__file__),'templates/blog')
  jinja_environment = jinja2.Environment(autoescape=True, loader=jinja2.FileSystemLoader(template_dir))
  </code></pre>
  
  <p>but, when I use render('blog.html') I have received error : <code>TemplateNotFound: blog.html</code>.</p>
  
  <p>Please help me.</p>
  
  <p>Thanks :)</p>