title: Django TemplateDoesNotExist at /home/
body: <p>directory structure of dummy project</p>
  <pre><code>/dummy
  
     /dummy
  
              urls.py
              views.py
              setting.py
              _init_
              wsgi.py
      /template
              home.html
  
  </code></pre>
  <p><strong>settings.py</strong></p>
  <pre><code>TEMPLATE_DIRS = (
      &quot;D:/Data/Codes/Django_Code/dummy/template&quot;
      )
  </code></pre>
  <p><strong>views.py</strong></p>
  <pre><code>from  django.shortcuts import render_to_response
  
  from  django.template import RequestContext
  
  def home_view(request):
      render_to_response(request, 'home.html')
  
  </code></pre>
  <p><strong>urls.py</strong></p>
  <pre><code>from django.conf.urls import patterns, include, url
      
  from dummy.views import home_view
      
  urlpatterns = patterns('',
      url(r'^home/$', home_view),
      )
  </code></pre>
  <p>scratching my head over TemplateDoesNotExist Although have specified template directory in setting.py under TEMPLATE_DIRS</p>
  <p>Error Trace
  Template-loader postmortem</p>
  <pre><code>Django tried loading these templates, in this order:
  Using loader django.template.loaders.filesystem.Loader:
  D:\Data\Codes\Django_Code\dummy\template\&lt;WSGIRequest
  path:\home\,
  GET:&lt;QueryDict: {}&gt;,
  POST:&lt;QueryDict: {}&gt;,
  COOKIES:{'csrftoken': 'CNnHomGRMMJmik75Pi2rclMVdPjO36t9'},
  META:{'ALLUSERSPROFILE': 'C:\ProgramData',
   'APPDATA': 'C:\Users\nitin\AppData\Roaming',
   'CLASSPATH': '.;D:\data\Codes;C:\Users\nitin\Downloads\javapostmark\apache-mime4j-0.6.jar;C:\Users\nitin\Downloads\javapostmark\commons-codec-1.3.jar;C:\Users\nitin\Downloads\javapostmark\commons-logging-1.1.1.jar;C:\Users\nitin\Downloads\javapostmark\gson-1.4.jar;C:\Users\nitin\Downloads\javapostmark\httpclient-4.0.1.jar;C:\Users\nitin\Downloads\javapostmark\httpcore-4.0.1.jar;C:\Users\nitin\Downloads\javapostmark\httpmime-4.0.1.jar;C:\Users\nitin\Downloads\javapostmark\joda-time-1.6.jar;',
   'COMMONPROGRAMFILES': 'C:\Program Files\Common Files',
   'COMMONPROGRAMFILES(X86)': 'C:\Program Files (x86)\Common Files',
   'COMMONPROGRAMW6432': 'C:\Program Files\Common Files',
   'COMPUTERNAME': 'NITIN-PC',
   'COMSPEC': 'C:\Windows\system32\cmd.exe',
   'CONTENT_LENGTH': '',
   'CONTENT_TYPE': 'text\plain',
   'CSRF_COOKIE': 'CNnHomGRMMJmik75Pi2rclMVdPjO36t9',
   'DJANGO_SETTINGS_MODULE': 'dummy.settings',
   'FP_NO_HOST_CHECK': 'NO',
   'GATEWAY_INTERFACE': 'CGI\1.1',
   'HOMEDRIVE': 'C:',
   'HOMEPATH': '\Users\nitin',
   'HTTP_ACCEPT': 'text\html,application\xhtml+xml,application\xml;q=0.9,*\*;q=0.8',
   'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.3',
   'HTTP_ACCEPT_ENCODING': 'gzip,deflate,sdch',
   'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.8',
   'HTTP_CACHE_CONTROL': 'max-age=0',
   'HTTP_CONNECTION': 'keep-alive',
   'HTTP_COOKIE': 'csrftoken=CNnHomGRMMJmik75Pi2rclMVdPjO36t9',
   'HTTP_HOST': '127.0.0.1:8000',
   'HTTP_USER_AGENT': 'Mozilla\5.0 (Windows NT 6.1; WOW64) AppleWebKit\537.4 (KHTML, like Gecko) Chrome\22.0.1229.94 Safari\537.4',
   'JAVA_HOME': 'C:\Program Files (x86)\Java\jdk1.7.0_05;',
   'LOCALAPPDATA': 'C:\Users\nitin\AppData\Local',
   'LOGONSERVER': '\NITIN-PC',
   'NUMBER_OF_PROCESSORS': '2',
   'OS': 'Windows_NT',
   'PATH': 'C:\Program Files (x86)\Java\jdk1.7.0_05\bin;C:\Python27;C:\Python27\;C:\Python27\Scripts',
   'PATHEXT': '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC',
   'PATH_INFO': u'\home\',
   'PROCESSOR_ARCHITECTURE': 'AMD64',
   'PROCESSOR_IDENTIFIER': 'Intel64 Family 6 Model 23 Stepping 10, GenuineIntel',
   'PROCESSOR_LEVEL': '6',
   'PROCESSOR_REVISION': '170a',
   'PROGRAMDATA': 'C:\ProgramData',
   'PROGRAMFILES': 'C:\Program Files',
   'PROGRAMFILES(X86)': 'C:\Program Files (x86)',
   'PROGRAMW6432': 'C:\Program Files',
   'PROMPT': '$P$G',
   'PSMODULEPATH': 'C:\Windows\system32\WindowsPowerShell\v1.0\Modules\',
   'PUBLIC': 'C:\Users\Public',
   'QUERY_STRING': '',
   'REMOTE_ADDR': '127.0.0.1',
   'REMOTE_HOST': '',
   'REQUEST_METHOD': 'GET',
   'RUN_MAIN': 'true',
   'SCRIPT_NAME': u'',
   'SERVER_NAME': 'nitin-PC',
   'SERVER_PORT': '8000',
   'SERVER_PROTOCOL': 'HTTP\1.1',
   'SERVER_SOFTWARE': 'WSGIServer\0.1 Python\2.7.3',
   'SESSIONNAME': 'Console',
   'SYSTEMDRIVE': 'C:',
   'SYSTEMROOT': 'C:\Windows',
   'TEMP': 'C:\Users\nitin\AppData\Local\Temp',
   'TMP': 'C:\Users\nitin\AppData\Local\Temp',
   'USERDOMAIN': 'nitin-PC',
   'USERNAME': 'nitin',
   'USERPROFILE': 'C:\Users\nitin',
   'WINDIR': 'C:\Windows',
   'wsgi.errors': &lt;open file '&lt;stderr&gt;', mode 'w' at 0x0000000001D761E0&gt;,
   'wsgi.file_wrapper': &lt;class wsgiref.util.FileWrapper at 0x0000000002E5D5E8&gt;,
   'wsgi.input': &lt;socket._fileobject object at 0x000000000327F138&gt;,
   'wsgi.multiprocess': False,
   'wsgi.multithread': True,
   'wsgi.run_once': False,
   'wsgi.url_scheme': 'http',
   'wsgi.version': (1, 0)}&gt; (File does not exist)
  Using loader django.template.loaders.app_directories.Loader:
  C:\Python27\lib\site-packages\django\contrib\auth\templates\&lt;WSGIRequest
  path:\home\,
  GET:&lt;QueryDict: {}&gt;,
  POST:&lt;QueryDict: {}&gt;,
  COOKIES:{'csrftoken': 'CNnHomGRMMJmik75Pi2rclMVdPjO36t9'},
  META:{'ALLUSERSPROFILE': 'C:\ProgramData',
   'APPDATA': 'C:\Users\nitin\AppData\Roaming',
   'CLASSPATH': '.;D:\data\Codes;C:\Users\nitin\Downloads\javapostmark\apache-mime4j-0.6.jar;C:\Users\nitin\Downloads\javapostmark\commons-codec-1.3.jar;C:\Users\nitin\Downloads\javapostmark\commons-logging-1.1.1.jar;C:\Users\nitin\Downloads\javapostmark\gson-1.4.jar;C:\Users\nitin\Downloads\javapostmark\httpclient-4.0.1.jar;C:\Users\nitin\Downloads\javapostmark\httpcore-4.0.1.jar;C:\Users\nitin\Downloads\javapostmark\httpmime-4.0.1.jar;C:\Users\nitin\Downloads\javapostmark\joda-time-1.6.jar;',
   'COMMONPROGRAMFILES': 'C:\Program Files\Common Files',
   'COMMONPROGRAMFILES(X86)': 'C:\Program Files (x86)\Common Files',
   'COMMONPROGRAMW6432': 'C:\Program Files\Common Files',
   'COMPUTERNAME': 'NITIN-PC',
   'COMSPEC': 'C:\Windows\system32\cmd.exe',
   'CONTENT_LENGTH': '',
   'CONTENT_TYPE': 'text\plain',
   'CSRF_COOKIE': 'CNnHomGRMMJmik75Pi2rclMVdPjO36t9',
   'DJANGO_SETTINGS_MODULE': 'dummy.settings',
   'FP_NO_HOST_CHECK': 'NO',
   'GATEWAY_INTERFACE': 'CGI\1.1',
   'HOMEDRIVE': 'C:',
   'HOMEPATH': '\Users\nitin',
   'HTTP_ACCEPT': 'text\html,application\xhtml+xml,application\xml;q=0.9,*\*;q=0.8',
   'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.3',
   'HTTP_ACCEPT_ENCODING': 'gzip,deflate,sdch',
   'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.8',
   'HTTP_CACHE_CONTROL': 'max-age=0',
   'HTTP_CONNECTION': 'keep-alive',
   'HTTP_COOKIE': 'csrftoken=CNnHomGRMMJmik75Pi2rclMVdPjO36t9',
   'HTTP_HOST': '127.0.0.1:8000',
   'HTTP_USER_AGENT': 'Mozilla\5.0 (Windows NT 6.1; WOW64) AppleWebKit\537.4 (KHTML, like Gecko) Chrome\22.0.1229.94 Safari\537.4',
   'JAVA_HOME': 'C:\Program Files (x86)\Java\jdk1.7.0_05;',
   'LOCALAPPDATA': 'C:\Users\nitin\AppData\Local',
   'LOGONSERVER': '\NITIN-PC',
   'NUMBER_OF_PROCESSORS': '2',
   'OS': 'Windows_NT',
   'PATH': 'C:\Program Files (x86)\Java\jdk1.7.0_05\bin;C:\Python27;C:\Python27\;C:\Python27\Scripts',
   'PATHEXT': '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC',
   'PATH_INFO': u'\home\',
   'PROCESSOR_ARCHITECTURE': 'AMD64',
   'PROCESSOR_IDENTIFIER': 'Intel64 Family 6 Model 23 Stepping 10, GenuineIntel',
   'PROCESSOR_LEVEL': '6',
   'PROCESSOR_REVISION': '170a',
   'PROGRAMDATA': 'C:\ProgramData',
   'PROGRAMFILES': 'C:\Program Files',
   'PROGRAMFILES(X86)': 'C:\Program Files (x86)',
   'PROGRAMW6432': 'C:\Program Files',
   'PROMPT': '$P$G',
   'PSMODULEPATH': 'C:\Windows\system32\WindowsPowerShell\v1.0\Modules\',
   'PUBLIC': 'C:\Users\Public',
   'QUERY_STRING': '',
   'REMOTE_ADDR': '127.0.0.1',
   'REMOTE_HOST': '',
   'REQUEST_METHOD': 'GET',
   'RUN_MAIN': 'true',
   'SCRIPT_NAME': u'',
   'SERVER_NAME': 'nitin-PC',
   'SERVER_PORT': '8000',
   'SERVER_PROTOCOL': 'HTTP\1.1',
   'SERVER_SOFTWARE': 'WSGIServer\0.1 Python\2.7.3',
   'SESSIONNAME': 'Console',
   'SYSTEMDRIVE': 'C:',
   'SYSTEMROOT': 'C:\Windows',
   'TEMP': 'C:\Users\nitin\AppData\Local\Temp',
   'TMP': 'C:\Users\nitin\AppData\Local\Temp',
   'USERDOMAIN': 'nitin-PC',
   'USERNAME': 'nitin',
   'USERPROFILE': 'C:\Users\nitin',
   'WINDIR': 'C:\Windows',
   'wsgi.errors': &lt;open file '&lt;stderr&gt;', mode 'w' at 0x0000000001D761E0&gt;,
   'wsgi.file_wrapper': &lt;class wsgiref.util.FileWrapper at 0x0000000002E5D5E8&gt;,
   'wsgi.input': &lt;socket._fileobject object at 0x000000000327F138&gt;,
   'wsgi.multiprocess': False,
   'wsgi.multithread': True,
   'wsgi.run_once': False,
   'wsgi.url_scheme': 'http',
   'wsgi.version': (1, 0)}&gt; (File does not exist)
  </code></pre>