You are writing a comment about Intro to Unintrusive JavaScript with Django, here is a quick summary:
The steps of the novice web developer are fraught with peril. They begin with HTML, then move onto CSS. They learn a web framework or two, and they finally start to wrangle with JavaScript. This tutorial aims to help the developer who has taken their first steps with Django, and wants to begin experimenting with adding JavaScript and Ajax to their webapps.
You are responding to this comment written by Andy on May 29th 2009, 12:10.
I especially liked the technique for specifying the ROOT_PATH constant at the beginning. Should be very handy for deployment.
It might be worth adding that white spaces or other non URL friendly characters in a slug produce a rather unfriendly error message. I managed to sort of fix it by replacing said unfriendly characters before writing a note object to the database. All the same, mapping the user-entered fields to the URLs is rather brittle.
Not that it detracts from the educational value of the example. It just had me pulling my hair out a bit when the CSS wouldn't render and half the links to objects didn't work. Maybe just a warning would suffice, since the whole point of the tutorial is ajax and not the silly note app.
Please be aware that comment forms go stale after one hour.
Comments may make use of LifeFlow MarkDown. Raw html will be escaped.
Quick Introduction to LifeFlow MarkDown Syntax
A highlighted code block:
Other common languages work as well: scheme, python, java, html, etc.
Other markdown syntax: