Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Added a comment to the 404/500 views so that people with DEBUG=False …

…and no 404/500 template will get a clue about which template to create.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@4612 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 9368f67b2b5050bac46c420182ee37e1138af347 1 parent 9da791a
Jacob Kaplan-Moss authored February 26, 2007

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  django/views/defaults.py
4  django/views/defaults.py
@@ -75,7 +75,7 @@ def page_not_found(request, template_name='404.html'):
75 75
         request_path
76 76
             The path of the requested URL (e.g., '/app/pages/bad_page/')
77 77
     """
78  
-    t = loader.get_template(template_name)
  78
+    t = loader.get_template(template_name) # You need to create a 404.html template.
79 79
     return http.HttpResponseNotFound(t.render(RequestContext(request, {'request_path': request.path})))
80 80
 
81 81
 def server_error(request, template_name='500.html'):
@@ -85,5 +85,5 @@ def server_error(request, template_name='500.html'):
85 85
     Templates: `500.html`
86 86
     Context: None
87 87
     """
88  
-    t = loader.get_template(template_name)
  88
+    t = loader.get_template(template_name) # You need to create a 500.html template.
89 89
     return http.HttpResponseServerError(t.render(Context({})))

0 notes on commit 9368f67

Please sign in to comment.
Something went wrong with that request. Please try again.