mirror of
https://github.com/django/django.git
synced 2025-10-26 15:16:09 +00:00
Fixed #21440 -- Typo in topics/http/shortcuts.txt
Thanks olof.bjarnason at gmail.com for the report.
This commit is contained in:
@@ -85,7 +85,7 @@ This example is equivalent to::
|
|||||||
|
|
||||||
def my_view(request):
|
def my_view(request):
|
||||||
# View code here...
|
# View code here...
|
||||||
t = loader.get_template('myapp/template.html')
|
t = loader.get_template('myapp/index.html')
|
||||||
c = RequestContext(request, {'foo': 'bar'})
|
c = RequestContext(request, {'foo': 'bar'})
|
||||||
return HttpResponse(t.render(c),
|
return HttpResponse(t.render(c),
|
||||||
content_type="application/xhtml+xml")
|
content_type="application/xhtml+xml")
|
||||||
|
|||||||
Reference in New Issue
Block a user