Practical Django Projects

By James Bennett

Progress

Page 190   of 256

Notes

Avatar

ericflo: James will be updating this book for the newest version of Django, it appears. Comment 3 weeks, 1 day ago for Practical Django Projects

Avatar

trey: Decorators are special functions that do nothing on their own but can be used to change the behavior of other functions. The permalink decorator you're using here (which lives in django.db.models) will actually rewrite the get_absolute_url() function to do ... Quote 3 months, 2 weeks ago for Practical Django Projects

Avatar

trey: So far, this is a very good book. It explains things more succinctly than The Definitive Guide. Perhaps because it doesn't spend a lot of time going over the philosophy of the framework, and instead just jumps into how to ... Note 3 months, 3 weeks ago for Practical Django Projects

Avatar

empty: The real definitive guide. This is the the book to get going on. Note 4 months, 2 weeks ago for Practical Django Projects

Avatar

y: Awesome source code. At first I thought I wont be gaining much from this book as it concentrates on building weblog which I have already done. But I learned a lot of optimized coding techniques. Thank you. Note 4 months, 3 weeks ago for Practical Django Projects

Avatar

blturner: In the search app you add Keywords to the Flatpage model as inlines. If you are using the latest django trunk, the code in the book will not work with NFA. I used this code: from django.contrib import admin from ... Note 4 months, 4 weeks ago for Practical Django Projects

Avatar

y: I am learning to write good clean code. Thank you James. Note 5 months ago for Practical Django Projects

Avatar

juliae: Found that there was a missing closed parenthesis in some of the weblog urls: (r'^weblog/(?Pd{4}/$'... change to: (r'^weblog/(?Pd{4])/$'... Note 5 months ago for Practical Django Projects

Avatar

blturner: I had some issues getting Akismet working. Instead of this line: akismet_api = Akismet(key=settings.AKISMET_API_KEY, blog_url="http:/%s/" % Site.objects.get_current().domain) I had to use a special method after the object instance was called: akismet_api = Akismet() akismet_api.setAPIKey(key=settings.AKISMET_API_KEY, blog_url='http://%s/' % Site.objects.get_current().domain) Setting the API ... Note 5 months ago for Practical Django Projects