title: django.template.exceptions.TemplateDoesNotExist:
body: <p>I have a python program that uses django and it generates the error django.template.exceptions.TemplateDoesNotExist. I made a sample of code to illustrate my problem. I created two files a test_file.py and HelloTemplate.txt, located in the same directory C:\Games\Game1.</p>
  
  <pre><code>#file name: test_file.py
  from django.template.loader import get_template
  from django.conf import settings
  settings.configure(DEBUG=True,TEMPLATE_DIRS=('.', ))
  #I also tried TEMPLATE_DIRS=('C:\Games\Game1', ), didn't solve the problem
  
  import sys
  
  
  def main():
      myTemplate = get_template("HelloTemplate.txt")
  
  
  if __name__ == '__main__':
      main()
  </code></pre>
  
  <p>The second file is a txt file with a line Hello as fellow:
  filename: HelloTemplate.txt
  Hello Template</p>
  
  <p>Here's the error that I got</p>
  
  <pre><code>Traceback (most recent call last):
  File "test_file.py", line 17, in &lt;module&gt;
     main()
  File "test_file.py", line 13, in main
     myTemplate = get_template("HelloTemplate.txt")
  File "C:\WinPython-32bit-2.7.5.3\python-2.7.5\lib\site-packages\django\template\loader.py", line 25, in get_template
      raise TemplateDoesNotExist(template_name, chain=chain)
  django.template.exceptions.TemplateDoesNotExist: HelloTemplate.txt
  </code></pre>
  
  <p>Thanks for your help to fix this error.</p>