Make a website with Django: Difference between revisions

imported>Jesstess
 
(8 intermediate revisions by 5 users not shown)
Line 14:
==Project setup==
 
'''''Bold text''''Italic text'''''=== Install Django ===
 
Please follow the instructions in [https://docs.djangoproject.com/en/1.5/intro/install/ the official installation guide] to install Django.
Line 76:
</li>
<li>
What is the purpose of <code>ttemplate.render</code> in this code snippet?
 
<pre>def index(request):
latest_poll_list = Poll.objects.all().order_by('-pub_date')[:5]
ttemplate = loader.get_template('polls/index.html')
ccontext = Context({
'latest_poll_list': latest_poll_list,
})
return HttpResponse(ttemplate.render(ccontext))</pre>
</li>
</ol>
Line 90:
=== 4. Complete Part 4 of the tutorial ===
 
* Please visit https://docs.djangoproject.com/en/1.45/intro/tutorial04/ and complete part 4 of the tutorial.
 
<br />
Line 103:
 
[[File:Fireworks.png|150px]]
[[File:Balloons.png|150px]]150p
Anonymous user