Hi! I have a problem with the 404 page. First I get: "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 404 page. "
and when I change DEBUG to False I get: Traceback (most recent call last): File "/usr/lib/python2.5/site-packages/django/core/servers/ basehttp.py", line 277, in run self.result = application(self.environ, self.start_response) File "/usr/lib/python2.5/site-packages/django/core/servers/ basehttp.py", line 634, in __call__ return self.application(environ, start_response) File "/usr/lib/python2.5/site-packages/django/core/handlers/ wsgi.py", line 239, in __call__ response = self.get_response(request) File "/usr/lib/python2.5/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.5/site-packages/django/core/handlers/ base.py", line 160, in handle_uncaught_exception return callback(request, **param_dict) File "/usr/lib/python2.5/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.5/site-packages/django/template/loader.py", line 80, in get_template source, origin = find_template_source(template_name) File "/usr/lib/python2.5/site-packages/django/template/loader.py", line 73, in find_template_source raise TemplateDoesNotExist, name TemplateDoesNotExist: 500.html ------------------ My view function: from django.shortcuts import get_object_or_404, render_to_response from coltrane.models import Entry def entry_detail(request, year, month, day, slug): import datetime, time date_stamp = time.strptime(year+month+day, "%Y%b%d") pub_date = datetime.date(*date_stamp[:3]) entry = get_object_or_404(Entry, pub_date__year=pub_date.year, pub_date__month=pub_date.month, pub_date__day=pub_date.day, slug=slug) return render_to_response('coltrane/entry_detail.html', { 'entry': entry }) ----------- Is the "500.html" template a standard Django file or must I create it myself? I'm using Django version: 1.0-beta_2-SVN-8798. regards --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---