Error message

2 views
Skip to first unread message

reactosguy

unread,
Dec 17, 2009, 8:34:04 PM12/17/09
to Django users
I get this message every time I go on http://localhost:8000/ with the
Django server running:

Traceback (most recent call last):

File "C:\Python26\lib\site-packages\django\core\servers
\basehttp.py", line 279, in run
self.result = application(self.environ, self.start_response)

File "C:\Python26\lib\site-packages\django\core\servers
\basehttp.py", line 651, in __call__
return self.application(environ, start_response)

File "C:\Python26\lib\site-packages\django\core\handlers\wsgi.py",
line 241, in __call__
response = self.get_response(request)

File "C:\Python26\lib\site-packages\django\core\handlers\base.py",
line 122, in get_response
return self.handle_uncaught_exception(request, resolver,
sys.exc_info())

File "C:\Python26\lib\site-packages\django\core\handlers\base.py",
line 166, in handle_uncaught_exception
return callback(request, **param_dict)

File "C:\Python26\lib\site-packages\django\views\defaults.py", line
23, in server_error
t = loader.get_template(template_name)

File "C:\Python26\lib\site-packages\django\template\loader.py", line
81, in get_template
source, origin = find_template_source(template_name)

File "C:\Python26\lib\site-packages\django\template\loader.py", line
74, in find_template_source
raise TemplateDoesNotExist, name

TemplateDoesNotExist: 500.html

Andres Vargas - zodman

unread,
Dec 17, 2009, 8:43:16 PM12/17/09
to django...@googlegroups.com
its because you set DEBUG=False

and on your templates dir not exist the file 500.html

> --
>
> You received this message because you are subscribed to the Google Groups "Django users" group.
> To post to this group, send email to django...@googlegroups.com.
> To unsubscribe from this group, send email to django-users...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
>
>
>

rebus_

unread,
Dec 18, 2009, 5:19:59 AM12/18/09
to django...@googlegroups.com
2009/12/18 reactosguy <micros...@gmail.com>:
> --

Create template with the name 500.html in your base template directory.
It tries to use 500.html on server error if you have DEBUG=False.

Davor

Reply all
Reply to author
Forward
0 new messages