mirror of
https://github.com/django/django.git
synced 2025-03-31 19:46:42 +00:00
parent
7e0ebd74c1
commit
d011714002
@ -167,7 +167,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 = Context({'foo': 'bar'})
|
c = Context({'foo': 'bar'})
|
||||||
return HttpResponse(t.render(c),
|
return HttpResponse(t.render(c),
|
||||||
content_type="application/xhtml+xml")
|
content_type="application/xhtml+xml")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user