mirror of
				https://github.com/django/django.git
				synced 2025-10-31 01:25:32 +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,6 +390,7 @@ 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"> | ||||||
| @@ -412,7 +413,6 @@ Exception Value: {{ exception_value|force_escape }} | |||||||
|     <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