hello, there is a setting in settings.py that controls where django searches for templates.
konstantin On Oct 21, 2:50 pm, NoviceSortOf <dljonsson2...@gmail.com> wrote: > Although I have 500.html in my > site-packages/django/contrib/admin/templates folder 500.html does not > appear when it should, below see my errors (I've included the > traceback items below). > > Is there something else I need to configure to get 500.html to load? > > Mod_python error: "PythonHandler django.core.handlers.modpython" > .... > .... > Traceback (most recent call last): > > File "/usr/lib/python2.3/site-packages/mod_python/apache.py", line > 299, in HandlerDispatch > result = object(req) > > File "/usr/lib/python2.3/site-packages/django/core/handlers/ > modpython.py", line 222, in handler > return ModPythonHandler()(req) > > File "/usr/lib/python2.3/site-packages/django/core/handlers/ > modpython.py", line 195, in __call__ > response = self.get_response(request) > > File "/usr/lib/python2.3/site-packages/django/core/handlers/ > base.py", line 116, in get_response > return self.handle_uncaught_exception(request, resolver, > sys.exc_info()) > > File "/usr/lib/python2.3/site-packages/django/core/handlers/ > base.py", line 160, in handle_uncaught_exception > return callback(request, **param_dict) > > File "/usr/lib/python2.3/site-packages/django/views/defaults.py", > line 88, in server_error > t = loader.get_template(template_name) # You need to create a > 500.html template. > > File "/usr/lib/python2.3/site-packages/django/template/loader.py", > line 80, in get_template > source, origin = find_template_source(template_name) > > File "/usr/lib/python2.3/site-packages/django/template/loader.py", > line 73, in find_template_source > raise TemplateDoesNotExist, name > > TemplateDoesNotExist: 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-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---