Make a website with Django: Difference between revisions

no edit summary
imported>Jesstess
imported>Jesstess
No edit summary
Line 47:
 
<b>Check your understanding</b>: What did you have to do to get your poll app displayed on the admin index page?
 
 
=== 3. Complete Part 3 of the tutorial ===
Line 70 ⟶ 71:
})
return HttpResponse(t.render(c))</pre>
 
 
=== 4. Complete Part 4 of the tutorial ===
Line 76 ⟶ 78:
 
<b>Check your understanding</b>: What is in <code>request.POST</code>?
 
== Bonus exercises ==
 
If you have time, try out some of these extra exercises.
 
 
=== 1. Customize how tweets are printed by <code>search</code> ===
 
The tweets printed by <code>search</code> could look much nicer and have more useful metadata!
 
Customize how tweets are displayed. Look at the <code>Status</code> and <code>User</code> classes in http://code.google.com/p/python-twitter/source/browse/twitter.py for inspiration; options include displaying:
* the sender of the tweet
* the URL for the tweet
* how many followers the sender has
* the location of the sender
* if it was a retweet
 
and more!
Anonymous user