Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Changed template names from [3707] to remove initial caps, to fit our…

… style.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@3718 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit b7a352d78fdd6608e770992b787a560e2e79438e 1 parent 8f79523
Adrian Holovaty authored
6  django/views/debug.py
@@ -115,7 +115,7 @@ def technical_500_response(request, exc_type, exc_value, tb):
115 115
             'function': '?',
116 116
             'lineno': '?',
117 117
         }]
118  
-    t = Template(TECHNICAL_500_TEMPLATE, name='Technical 500 Template')
  118
+    t = Template(TECHNICAL_500_TEMPLATE, name='Technical 500 template')
119 119
     c = Context({
120 120
         'exception_type': exc_type.__name__,
121 121
         'exception_value': exc_value,
@@ -141,7 +141,7 @@ def technical_404_response(request, exception):
141 141
             # tried exists but is an empty list. The URLconf must've been empty.
142 142
             return empty_urlconf(request)
143 143
 
144  
-    t = Template(TECHNICAL_404_TEMPLATE, name='Technical 404 Template')
  144
+    t = Template(TECHNICAL_404_TEMPLATE, name='Technical 404 template')
145 145
     c = Context({
146 146
         'root_urlconf': settings.ROOT_URLCONF,
147 147
         'urlpatterns': tried,
@@ -154,7 +154,7 @@ def technical_404_response(request, exception):
154 154
 
155 155
 def empty_urlconf(request):
156 156
     "Create an empty URLconf 404 error response."
157  
-    t = Template(EMPTY_URLCONF_TEMPLATE, name='Empty URLConf Template')
  157
+    t = Template(EMPTY_URLCONF_TEMPLATE, name='Empty URLConf template')
158 158
     c = Context({
159 159
         'project_name': settings.SETTINGS_MODULE.split('.')[0]
160 160
     })
2  django/views/static.py
@@ -81,7 +81,7 @@ def directory_index(path, fullpath):
81 81
     try:
82 82
         t = loader.get_template('static/directory_index')
83 83
     except TemplateDoesNotExist:
84  
-        t = Template(DEFAULT_DIRECTORY_INDEX_TEMPLATE, name='Default Directory Index Template')
  84
+        t = Template(DEFAULT_DIRECTORY_INDEX_TEMPLATE, name='Default directory index template')
85 85
     files = []
86 86
     for f in os.listdir(fullpath):
87 87
         if not f.startswith('.'):

0 notes on commit b7a352d

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