Archive for the ‘django’ Category

edit: # ericflo pointed out something that I totally forgot about... render_to_string. And he's completely correct... It does exactly the same thing and most likely does it better... DOH! Well whatever... here is my version anyway ;)...

So lately I've been working out all the kinks of running Django via pydev/eclipse so I can do more dev on my local machine. Since localy I run windows but I deploy onto Ubuntu Linux I've come up with a little hack that lets me conditionally load my...

OK I'm going to be completely frank. You VERY likely could do this FAR better. But! I looked and have yet to see anything that does this for Django. So, here is my half ass'd attempt at two very helpful methods I picked up from my shady rails past. So by...

I was working on perva.de and I needed to add a cookie to the response. Now thats not really a tough thing to do but it has one unfortunate side effect. Basically it makes you have to use the long handed method for rendering the template instead of being...

edit: This example is no longer appropriate for current versions of Django. Most of the features the wrapper provides are now part of the core pagination classes. Please see my newer post about the topic (with example). For my current project...

Here is a handy little logger I wrote for Django. Feel free to use it if you want and to give me your thoughts on improvements. It was my first stab so be gentle. ;) Big thx to... http://www.linuxjournal.com/article/5821 for exception formatting...

Flickr Pics

13th and washington NYC13th and 9th NYC1st st Jersey CityIMG_2813IMG_2814_2IMG_2816IMG_2815Photo_011908_001Photo_122807_001Photo_121107_001