Django

Code

Ticket #2047: tutorial03.txt.diff

File tutorial03.txt.diff, 0.6 kB (added by asmodai@in-nomine.org, 2 years ago)

Patch for changing the TemplateDoesNotExist? error to reflect reality

  • django/docs/tutorial03.txt

    old new  
    209209        }) 
    210210        return HttpResponse(t.render(c)) 
    211211 
    212 That code loads the template called "polls/index" and passes it a context. The 
    213 context is a dictionary mapping template variable names to Python objects. 
     212That code loads the template called "polls/index.html" and passes it a context. 
     213The context is a dictionary mapping template variable names to Python objects. 
    214214 
    215215Reload the page. Now you'll see an error:: 
    216216