TemplateDoesNotExist at /hello/max/ hello.html Request Method: GET Request URL: http://localhost/hello/max/ Exception Type: TemplateDoesNotExist Exception Value: hello.html Exception Location: C:\Python25\Lib\site-packages\django\template\loader.py in find_template_source, line 72 Template-loader postmortem Django couldn't find any templates because your TEMPLATE_LOADERS setting is empty! Traceback (innermost last) Switch to copy-and-paste view * C:\Python25\Lib\site-packages\django\core\handlers\base.py in get_response 70. # Apply view middleware 71. for middleware_method in self._view_middleware: 72. response = middleware_method(request, callback, callback_args, callback_kwargs) 73. if response: 74. return response 75. 76. try: 77. response = callback(request, *callback_args, **callback_kwargs) ... 78. except Exception, e: 79. # If the view raised an exception, run it through exception 80. # middleware, and if the exception middleware returns a 81. # response, use that. Otherwise, reraise the exception. 82. for middleware_method in self._exception_middleware: 83. response = middleware_method(request, e) ▶ Local vars Variable Value callback callback_args ('max',) callback_kwargs {} debug e TemplateDoesNotExist('hello.html',) exceptions mail_admins middleware_method > request , POST:, COOKIES:{'e107cookie': '1.28c8edde3d61a0411511d3b1866f0636'}, META:{'ALLUSERSPROFILE': 'C:\\Documents and Settings\\All Users', 'APPDATA': 'C:\\Documents and Settings\\maxim\\Application Data', 'COMMONPROGRAMFILES': 'C:\\Program Files\\Common Files', 'COMPUTERNAME': 'DEV004', 'COMSPEC': 'C:\\WINDOWS\\system32\\cmd.exe', 'CONTENT_LENGTH': '', 'CONTENT_TYPE': 'text/plain', 'DJANGO_SETTINGS_MODULE': 'myproject.settings', 'FP_NO_HOST_CHECK': 'NO', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HOMEDRIVE': 'C:', 'HOMEPATH': '\\Documents and Settings\\maxim', 'HTTP_ACCEPT': 'text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_ACCEPT_LANGUAGE': 'en-gb,en;q=0.5', 'HTTP_CACHE_CONTROL': 'max-age=0', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'e107cookie=1.28c8edde3d61a0411511d3b1866f0636', 'HTTP_HOST': 'localhost', 'HTTP_KEEP_ALIVE': '300', 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11', 'LOGONSERVER': '\\\\DEV004', 'NUMBER_OF_PROCESSORS': '1', 'OS': 'Windows_NT', 'PATH': 'c:\\oracle\\ora92\\bin;C:\\Program Files\\Oracle\\jre\\1.1.8\\bin;C:\\Program Files\\ThinkPad\\Utilities;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\Program Files\\ATI Technologies\\ATI Control Panel;C:\\Program Files\\ThinkPad\\ConnectUtilities;C:\\Program Files\\Common Files\\Adobe\\AGL;C:\\My stuff\\Software\\WinSCP\\;C:\\Python25\\;C:\\Python25\\Lib\\site-packages\\django\\bin\\', 'PATHEXT': '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH', 'PATH_INFO': '/hello/max/', 'PROCESSOR_ARCHITECTURE': 'x86', 'PROCESSOR_IDENTIFIER': 'x86 Family 15 Model 2 Stepping 7, GenuineIntel', 'PROCESSOR_LEVEL': '15', 'PROCESSOR_REVISION': '0207', 'PROGRAMFILES': 'C:\\Program Files', 'PROMPT': '$P$G', 'QUERY_STRING': '', 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_HOST': '', 'REQUEST_METHOD': 'GET', 'RUN_MAIN': 'true', 'SCRIPT_NAME': '', 'SERVER_NAME': 'localhost', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SOFTWARE': 'WSGIServer/0.1 Python/2.5.1', 'SESSIONNAME': 'Console', 'SYSTEMDRIVE': 'C:', 'SYSTEMROOT': 'C:\\WINDOWS', 'TEMP': 'C:\\DOCUME~1\\maxim\\LOCALS~1\\Temp', 'TMP': 'C:\\DOCUME~1\\maxim\\LOCALS~1\\Temp', 'USERDOMAIN': 'DEV004', 'USERNAME': 'maxim', 'USERPROFILE': 'C:\\Documents and Settings\\maxim', 'WINDIR': 'C:\\WINDOWS', 'wsgi.errors': ', mode 'w' at 0x00B1F0B0>, 'wsgi.file_wrapper': , 'wsgi.input': , 'wsgi.multiprocess': False, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}> resolver response None self settings urlconf 'myproject.urls' urlresolvers * C:\My stuff\server\www\myproject\..\myproject\views.py in hello_name 6. 7. def current_datetime(request): 8. now = datetime.datetime.now() 9. html = "It is now %s" %now 10. return HttpResponse(html) 11. 12. def hello_name(request, name): 13. t = get_template('hello.html') ... 14. html = t.render(Context({'name': name})) 15. return HttpResponse(html) ▶ Local vars Variable Value name 'max' request , POST:, COOKIES:{'e107cookie': '1.28c8edde3d61a0411511d3b1866f0636'}, META:{'ALLUSERSPROFILE': 'C:\\Documents and Settings\\All Users', 'APPDATA': 'C:\\Documents and Settings\\maxim\\Application Data', 'COMMONPROGRAMFILES': 'C:\\Program Files\\Common Files', 'COMPUTERNAME': 'DEV004', 'COMSPEC': 'C:\\WINDOWS\\system32\\cmd.exe', 'CONTENT_LENGTH': '', 'CONTENT_TYPE': 'text/plain', 'DJANGO_SETTINGS_MODULE': 'myproject.settings', 'FP_NO_HOST_CHECK': 'NO', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HOMEDRIVE': 'C:', 'HOMEPATH': '\\Documents and Settings\\maxim', 'HTTP_ACCEPT': 'text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_ACCEPT_LANGUAGE': 'en-gb,en;q=0.5', 'HTTP_CACHE_CONTROL': 'max-age=0', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'e107cookie=1.28c8edde3d61a0411511d3b1866f0636', 'HTTP_HOST': 'localhost', 'HTTP_KEEP_ALIVE': '300', 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11', 'LOGONSERVER': '\\\\DEV004', 'NUMBER_OF_PROCESSORS': '1', 'OS': 'Windows_NT', 'PATH': 'c:\\oracle\\ora92\\bin;C:\\Program Files\\Oracle\\jre\\1.1.8\\bin;C:\\Program Files\\ThinkPad\\Utilities;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\Program Files\\ATI Technologies\\ATI Control Panel;C:\\Program Files\\ThinkPad\\ConnectUtilities;C:\\Program Files\\Common Files\\Adobe\\AGL;C:\\My stuff\\Software\\WinSCP\\;C:\\Python25\\;C:\\Python25\\Lib\\site-packages\\django\\bin\\', 'PATHEXT': '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH', 'PATH_INFO': '/hello/max/', 'PROCESSOR_ARCHITECTURE': 'x86', 'PROCESSOR_IDENTIFIER': 'x86 Family 15 Model 2 Stepping 7, GenuineIntel', 'PROCESSOR_LEVEL': '15', 'PROCESSOR_REVISION': '0207', 'PROGRAMFILES': 'C:\\Program Files', 'PROMPT': '$P$G', 'QUERY_STRING': '', 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_HOST': '', 'REQUEST_METHOD': 'GET', 'RUN_MAIN': 'true', 'SCRIPT_NAME': '', 'SERVER_NAME': 'localhost', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SOFTWARE': 'WSGIServer/0.1 Python/2.5.1', 'SESSIONNAME': 'Console', 'SYSTEMDRIVE': 'C:', 'SYSTEMROOT': 'C:\\WINDOWS', 'TEMP': 'C:\\DOCUME~1\\maxim\\LOCALS~1\\Temp', 'TMP': 'C:\\DOCUME~1\\maxim\\LOCALS~1\\Temp', 'USERDOMAIN': 'DEV004', 'USERNAME': 'maxim', 'USERPROFILE': 'C:\\Documents and Settings\\maxim', 'WINDIR': 'C:\\WINDOWS', 'wsgi.errors': ', mode 'w' at 0x00B1F0B0>, 'wsgi.file_wrapper': , 'wsgi.input': , 'wsgi.multiprocess': False, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}> * C:\Python25\Lib\site-packages\django\template\loader.py in get_template 72. raise TemplateDoesNotExist, name 73. 74. def get_template(template_name): 75. """ 76. Returns a compiled Template object for the given template name, 77. handling template inheritance recursively. 78. """ 79. source, origin = find_template_source(template_name) ... 80. template = get_template_from_string(source, origin, template_name) 81. return template 82. 83. def get_template_from_string(source, origin=None, name=None): 84. """ 85. Returns a compiled Template object for the given template code, ▶ Local vars Variable Value template_name 'hello.html' * C:\Python25\Lib\site-packages\django\template\loader.py in find_template_source 65. template_source_loaders.append(func) 66. for loader in template_source_loaders: 67. try: 68. source, display_name = loader(name, dirs) 69. return (source, make_origin(display_name, loader, name, dirs)) 70. except TemplateDoesNotExist: 71. pass 72. raise TemplateDoesNotExist, name ... 73. 74. def get_template(template_name): 75. """ 76. Returns a compiled Template object for the given template name, 77. handling template inheritance recursively. 78. """ ▶ Local vars Variable Value dirs None name 'hello.html' Traceback (most recent call last): File "C:\Python25\Lib\site-packages\django\core\handlers\base.py" in get_response 77. response = callback(request, *callback_args, **callback_kwargs) File "C:\My stuff\server\www\myproject\..\myproject\views.py" in hello_name 13. t = get_template('hello.html') File "C:\Python25\Lib\site-packages\django\template\loader.py" in get_template 79. source, origin = find_template_source(template_name) File "C:\Python25\Lib\site-packages\django\template\loader.py" in find_template_source 72. raise TemplateDoesNotExist, name TemplateDoesNotExist at /hello/max/ hello.html Request information GET No GET data POST No POST data COOKIES Variable Value e107cookie '1.28c8edde3d61a0411511d3b1866f0636' META Variable Value ALLUSERSPROFILE 'C:\\Documents and Settings\\All Users' APPDATA 'C:\\Documents and Settings\\maxim\\Application Data' COMMONPROGRAMFILES 'C:\\Program Files\\Common Files' COMPUTERNAME 'DEV004' COMSPEC 'C:\\WINDOWS\\system32\\cmd.exe' CONTENT_LENGTH '' CONTENT_TYPE 'text/plain' DJANGO_SETTINGS_MODULE 'myproject.settings' FP_NO_HOST_CHECK 'NO' GATEWAY_INTERFACE 'CGI/1.1' HOMEDRIVE 'C:' HOMEPATH '\\Documents and Settings\\maxim' HTTP_ACCEPT 'text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5' HTTP_ACCEPT_CHARSET 'ISO-8859-1,utf-8;q=0.7,*;q=0.7' HTTP_ACCEPT_ENCODING 'gzip,deflate' HTTP_ACCEPT_LANGUAGE 'en-gb,en;q=0.5' HTTP_CACHE_CONTROL 'max-age=0' HTTP_CONNECTION 'keep-alive' HTTP_COOKIE 'e107cookie=1.28c8edde3d61a0411511d3b1866f0636' HTTP_HOST 'localhost' HTTP_KEEP_ALIVE '300' HTTP_USER_AGENT 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11' LOGONSERVER '\\\\DEV004' NUMBER_OF_PROCESSORS '1' OS 'Windows_NT' PATH 'c:\\oracle\\ora92\\bin;C:\\Program Files\\Oracle\\jre\\1.1.8\\bin;C:\\Program Files\\ThinkPad\\Utilities;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\Program Files\\ATI Technologies\\ATI Control Panel;C:\\Program Files\\ThinkPad\\ConnectUtilities;C:\\Program Files\\Common Files\\Adobe\\AGL;C:\\My stuff\\Software\\WinSCP\\;C:\\Python25\\;C:\\Python25\\Lib\\site-packages\\django\\bin\\' PATHEXT '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH' PATH_INFO '/hello/max/' PROCESSOR_ARCHITECTURE 'x86' PROCESSOR_IDENTIFIER 'x86 Family 15 Model 2 Stepping 7, GenuineIntel' PROCESSOR_LEVEL '15' PROCESSOR_REVISION '0207' PROGRAMFILES 'C:\\Program Files' PROMPT '$P$G' QUERY_STRING '' REMOTE_ADDR '127.0.0.1' REMOTE_HOST '' REQUEST_METHOD 'GET' RUN_MAIN 'true' SCRIPT_NAME '' SERVER_NAME 'localhost' SERVER_PORT '80' SERVER_PROTOCOL 'HTTP/1.1' SERVER_SOFTWARE 'WSGIServer/0.1 Python/2.5.1' SESSIONNAME 'Console' SYSTEMDRIVE 'C:' SYSTEMROOT 'C:\\WINDOWS' TEMP 'C:\\DOCUME~1\\maxim\\LOCALS~1\\Temp' TMP 'C:\\DOCUME~1\\maxim\\LOCALS~1\\Temp' USERDOMAIN 'DEV004' USERNAME 'maxim' USERPROFILE 'C:\\Documents and Settings\\maxim' WINDIR 'C:\\WINDOWS' wsgi.errors ', mode 'w' at 0x00B1F0B0> wsgi.file_wrapper wsgi.input wsgi.multiprocess False wsgi.multithread True wsgi.run_once False wsgi.url_scheme 'http' wsgi.version (1, 0) Settings Using settings module myproject.settings Setting Value ABSOLUTE_URL_OVERRIDES {} ADMINS () ADMIN_FOR () ADMIN_MEDIA_PREFIX '/media/' ALLOWED_INCLUDE_ROOTS () APPEND_SLASH True AUTHENTICATION_BACKENDS ('django.contrib.auth.backends.ModelBackend',) BANNED_IPS () CACHE_BACKEND 'simple://' CACHE_MIDDLEWARE_KEY_PREFIX '' COMMENTS_ALLOW_PROFANITIES False COMMENTS_BANNED_USERS_GROUP None COMMENTS_FIRST_FEW 0 COMMENTS_MODERATORS_GROUP None COMMENTS_SKETCHY_USERS_GROUP None DATABASE_ENGINE 'sqlite3' DATABASE_HOST '' DATABASE_NAME '' DATABASE_OPTIONS {} DATABASE_PASSWORD '********************' DATABASE_PORT '' DATABASE_USER '' DATETIME_FORMAT 'N j, Y, P' DATE_FORMAT 'N j, Y' DEBUG True DEFAULT_CHARSET 'utf-8' DEFAULT_CONTENT_TYPE 'text/html' DEFAULT_FROM_EMAIL 'webmaster@localhost' DISALLOWED_USER_AGENTS () EMAIL_HOST 'localhost' EMAIL_HOST_PASSWORD '********************' EMAIL_HOST_USER '' EMAIL_PORT 25 EMAIL_SUBJECT_PREFIX '[Django] ' FIXTURE_DIRS () IGNORABLE_404_ENDS ('mail.pl', 'mailform.pl', 'mail.cgi', 'mailform.cgi', 'favicon.ico', '.php') IGNORABLE_404_STARTS ('/cgi-bin/', '/_vti_bin', '/_vti_inf') INSTALLED_APPS ['django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites'] INTERNAL_IPS () JING_PATH '/usr/bin/jing' LANGUAGES (('ar', 'Arabic'), ('bn', 'Bengali'), ('ca', 'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('el', 'Greek'), ('en', 'English'), ('es', 'Spanish'), ('es_AR', 'Argentinean Spanish'), ('fi', 'Finnish'), ('fr', 'French'), ('gl', 'Galician'), ('hu', 'Hungarian'), ('he', 'Hebrew'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('kn', 'Kannada'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('nl', 'Dutch'), ('no', 'Norwegian'), ('pl', 'Polish'), ('pt', 'Portugese'), ('pt-br', 'Brazilian'), ('ro', 'Romanian'), ('ru', 'Russian'), ('sk', 'Slovak'), ('sl', 'Slovenian'), ('sr', 'Serbian'), ('sv', 'Swedish'), ('ta', 'Tamil'), ('te', 'Telugu'), ('tr', 'Turkish'), ('uk', 'Ukrainian'), ('zh-cn', 'Simplified Chinese'), ('zh-tw', 'Traditional Chinese')) LANGUAGES_BIDI ('he', 'ar') LANGUAGE_CODE 'en-us' MANAGERS () MEDIA_ROOT '' MEDIA_URL '' MIDDLEWARE_CLASSES ('django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.middleware.doc.XViewMiddleware') MONTH_DAY_FORMAT 'F j' PREPEND_WWW False PROFANITIES_LIST '********************' ROOT_URLCONF 'myproject.urls' SECRET_KEY '********************' SEND_BROKEN_LINK_EMAILS False SERVER_EMAIL 'root@localhost' SESSION_COOKIE_AGE 1209600 SESSION_COOKIE_DOMAIN None SESSION_COOKIE_NAME 'sessionid' SESSION_COOKIE_SECURE False SESSION_EXPIRE_AT_BROWSER_CLOSE False SESSION_SAVE_EVERY_REQUEST False SETTINGS_MODULE 'myproject.settings' SITE_ID 1 TEMPLATE_CONTEXT_PROCESSORS ('django.core.context_processors.auth', 'django.core.context_processors.debug', 'django.core.context_processors.i18n') TEMPLATE_DEBUG True TEMPLATE_DIRS () TEMPLATE_LOADERS ('C:/My Stuff/server/www/myproject/templates',) TEMPLATE_STRING_IF_INVALID '' TEST_DATABASE_NAME None TEST_RUNNER 'django.test.simple.run_tests' TIME_FORMAT 'P' TIME_ZONE 'Asia/Jerusalem' TRANSACTIONS_MANAGED False URL_VALIDATOR_USER_AGENT 'Django/0.96.1 (http://www.djangoproject.com)' USE_ETAGS False USE_I18N True YEAR_MONTH_FORMAT 'F Y' You're seeing this error because you have DEBUG = True in your Django settings file. Change that to False, and Django will display a standard 500 page.