mirror of
				https://github.com/django/django.git
				synced 2025-11-04 05:35:37 +00:00 
			
		
		
		
	Fixed #20482 - Added a file reference in tutorial 3.
Thanks diek@ for the suggestion.
This commit is contained in:
		
							parent
							
								
									8aca2504df
								
							
						
					
					
						commit
						9e65bd33db
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -336,7 +336,7 @@ Put the following code in that template:
 | 
				
			||||||
        <p>No polls are available.</p>
 | 
					        <p>No polls are available.</p>
 | 
				
			||||||
    {% endif %}
 | 
					    {% endif %}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Now let's use that html template in our index view::
 | 
					Now let's update our ``index`` view in ``polls/views.py`` to use the template::
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    from django.http import HttpResponse
 | 
					    from django.http import HttpResponse
 | 
				
			||||||
    from django.template import Context, loader
 | 
					    from django.template import Context, loader
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue