On 11/18/05, David Ascher <[EMAIL PROTECTED]> wrote: > After watching the TurboGears 20 minute wiki screencast today, I figured I'd > try to build the equivalent code in Django to see what it's like. > > It took me more than 20 minutes, but since this is my first non-tutorial > Django app, I'm ok with that. > > If anyone is interested, I've put it up at: > http://da.textdriven.com:8027/sydney/browser/trunk/wiki/ > > Specifically, I'd love feedback on the views ( > http://da.textdriven.com:8027/sydney/file/trunk/wiki/apps/pages/views.py) > and the template ( > http://da.textdriven.com:8027/sydney/file/trunk/wiki/templates/pages/page.html). > Everything else seems relatively straightforward, although I may be doing > Bad Things with the urls too ( > http://da.textdriven.com:8027/sydney/file/trunk/wiki/urls.py). > > Note that unlike the TurboGears's use of MochiKit to convert JSON to DOM, I > used the trivial ahah.js code from the microformats folks ( > http://www.microformats.org/wiki/rest/ahah) to do the Ajax > operation. Only one line of JS even though there is a maybe a bit more > stuff going over the wire. > > About 70 lines of Python, 23 lines of HTML.
That's awesome! Thanks for sharing. That does a good job, for me at least, showing off a lot of the little nicities django has to offer, like the generic view to do the page list, and the template filters. You should write this up and make a movie out of it! :-) Bryan