mirror of
https://github.com/django/django.git
synced 2025-09-27 04:29:17 +00:00
Thanks alasdair.
Backport of d011714002
from master
This commit is contained in:
parent
882ee16f68
commit
e8dea1f35c
1 changed files with 1 additions and 1 deletions
|
@ -154,7 +154,7 @@ This example is equivalent to::
|
|||
|
||||
def my_view(request):
|
||||
# View code here...
|
||||
t = loader.get_template('myapp/template.html')
|
||||
t = loader.get_template('myapp/index.html')
|
||||
c = Context({'foo': 'bar'})
|
||||
return HttpResponse(t.render(c),
|
||||
content_type="application/xhtml+xml")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue