mirror of
				https://github.com/django/django.git
				synced 2025-10-30 17:16:10 +00:00 
			
		
		
		
	Standardized formatting in technical 500 template.
- Prefer use of `k` and `v` instead of `var.0` and `var.1`. - Fixed indentation of #files-info block to match adjacent blocks.
This commit is contained in:
		
				
					committed by
					
						 Mariusz Felisiak
						Mariusz Felisiak
					
				
			
			
				
	
			
			
			
						parent
						
							f2dd652245
						
					
				
				
					commit
					390832e04a
				
			| @@ -390,29 +390,29 @@ Exception Value: {{ exception_value|force_escape }} | |||||||
|   {% else %} |   {% else %} | ||||||
|     <p>No POST data</p> |     <p>No POST data</p> | ||||||
|   {% endif %} |   {% endif %} | ||||||
|  |  | ||||||
|   <h3 id="files-info">FILES</h3> |   <h3 id="files-info">FILES</h3> | ||||||
|   {% if request.FILES %} |   {% if request.FILES %} | ||||||
|     <table class="req"> |     <table class="req"> | ||||||
|         <thead> |       <thead> | ||||||
|             <tr> |         <tr> | ||||||
|                 <th>Variable</th> |           <th>Variable</th> | ||||||
|                 <th>Value</th> |           <th>Value</th> | ||||||
|             </tr> |         </tr> | ||||||
|         </thead> |       </thead> | ||||||
|         <tbody> |       <tbody> | ||||||
|             {% for k, v in request_FILES_items %} |         {% for k, v in request_FILES_items %} | ||||||
|                 <tr> |           <tr> | ||||||
|                     <td>{{ k }}</td> |             <td>{{ k }}</td> | ||||||
|                     <td class="code"><pre>{{ v|pprint }}</pre></td> |             <td class="code"><pre>{{ v|pprint }}</pre></td> | ||||||
|                 </tr> |           </tr> | ||||||
|             {% endfor %} |         {% endfor %} | ||||||
|         </tbody> |       </tbody> | ||||||
|     </table> |     </table> | ||||||
|   {% else %} |   {% else %} | ||||||
|     <p>No FILES data</p> |     <p>No FILES data</p> | ||||||
|   {% endif %} |   {% endif %} | ||||||
|  |  | ||||||
|  |  | ||||||
|   <h3 id="cookie-info">COOKIES</h3> |   <h3 id="cookie-info">COOKIES</h3> | ||||||
|   {% if request.COOKIES %} |   {% if request.COOKIES %} | ||||||
|     <table class="req"> |     <table class="req"> | ||||||
| @@ -444,10 +444,10 @@ Exception Value: {{ exception_value|force_escape }} | |||||||
|       </tr> |       </tr> | ||||||
|     </thead> |     </thead> | ||||||
|     <tbody> |     <tbody> | ||||||
|       {% for var in request_meta.items|dictsort:0 %} |       {% for k, v in request_meta.items|dictsort:0 %} | ||||||
|         <tr> |         <tr> | ||||||
|           <td>{{ var.0 }}</td> |           <td>{{ k }}</td> | ||||||
|           <td class="code"><pre>{{ var.1|pprint }}</pre></td> |           <td class="code"><pre>{{ v|pprint }}</pre></td> | ||||||
|         </tr> |         </tr> | ||||||
|       {% endfor %} |       {% endfor %} | ||||||
|     </tbody> |     </tbody> | ||||||
| @@ -466,10 +466,10 @@ Exception Value: {{ exception_value|force_escape }} | |||||||
|       </tr> |       </tr> | ||||||
|     </thead> |     </thead> | ||||||
|     <tbody> |     <tbody> | ||||||
|       {% for var in settings.items|dictsort:0 %} |       {% for k, v in settings.items|dictsort:0 %} | ||||||
|         <tr> |         <tr> | ||||||
|           <td>{{ var.0 }}</td> |           <td>{{ k }}</td> | ||||||
|           <td class="code"><pre>{{ var.1|pprint }}</pre></td> |           <td class="code"><pre>{{ v|pprint }}</pre></td> | ||||||
|         </tr> |         </tr> | ||||||
|       {% endfor %} |       {% endfor %} | ||||||
|     </tbody> |     </tbody> | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user