
Introspecting views in Django
Monday, February 15th, 2010
I've been developing small wikiesque app for Django recently, and since I'm a fan of human-friendly URIs I had some difficulty coming up with a DRY method for finding the primary model associated with any given view within my project. Of course, not every view is directly associated with a single model, but in most cases you can probably inspect each of your views and conclude that there is a single primary model instance which is most directly related.
In this example, I'll explain the method which I've decided to use in order to take any requested URI path and rather than resolve it into a view, we will resolve it to a specific model instance. This greatly simplifies the process of creating sub-views which have access to the parent view's primary model instance.
Tux used for nefarious purposes
Wednesday, December 23rd, 2009Merry Christmas
Sunday, December 20th, 2009Second Creeple results
Thursday, November 19th, 2009The second attempt ( Creeple: part 2 )
Monday, August 10th, 2009My Recent Tweets

Strike Team
Tuesday, July 13th, 2010Who doesn't love shiny pants and unrealistically large space-age firearms? I didn't realize how much this piece was subconsciously influenced by a certain pair of Bioshock characters until I had it nearly finished. One major difference in my workflow for this piece is that it was entirely digital as I decided to use MyPaint for the initial sketch. Final coloring and composition was done in Inkscape as usual.
click here to view
