heisel.org

Django cache keys: making them safer

I posted some code to make your Django cache keys safer over at Django snip­pets the other day. This code evolved at work over sev­eral months as we encoun­tered a few caching chal­lenges with mem­cache. The first prob­lem was that occa­sion­ally some of our cache keys would be too long. Mem­cache only allows keys up to 250 characters. [...]

November 25, 2008 | Categories: Django, Programming, Python, Technology

Django developer wanted at ajc.com

We’re look­ing for a great Django/Python devel­oper to join our small team at ajc.com. Check out the job post­ing at Django Gigs or at Craigslist. Here are some of the ben­e­fits to work­ing on our team: We’re a small team — but full of great people like Maura and Zellyn Our projects are highly vis­i­ble — if you’ve spent [...]

November 24, 2008 | Categories: Django, Journalism, Programming, Python, Technology

Django in the Enterprise

Long-​time read­ers know of my dis­like for the word enter­prise, but the truth is that many of us work for just such a beast. Luck­ily I get to use Django at my job and I thought I’d share what little I know of how to get Django into a big com­pany. Start small — If your pitch starts [...]

September 15, 2008 | Categories: Django, Python

My first Django snippet: Another Memcache status view

Hooray! I posted by first Django snip­pet today. It’s a status view for your mem­cache server(s). I had orig­i­nally used this snip­pet, but the regex and socket thing never quite sat right with me. Turns out that django.core.cache has a _cache object with a nice get_status() func­tion. It returns a list of tuples — one for each server [...]

February 14, 2008 | Categories: Django, Python, Technology

Journalism job description tag clouds

A col­league of mine, (whom may or may not remem­ber me from my Dow Jones Online Intern­ship), Eric Ulken built a tag cloud of key­words in post­ings to jour​nal​is​mjobs.com. Not sur­pris­ingly, “blogs”, “interactive”, “flash” and “graphics” top the list — it seems, so far, that those are the key terms that have been labeled ‘online’ by [...]

January 23, 2008 | Categories: Journalism, Python

AJC development group mentioned at APME

We’re in film! Robin Henry, our Dig­i­tal Man­ag­ing Editor extra­or­di­naire, spoke at a recent Asso­ci­ated Press Man­ag­ing Edi­tors con­fer­ence and screened this Sound­slides pre­sen­ta­tion that Emily Murphy and the AJC’s mul­ti­me­dia group put together. I look and sound like a total dweeb, but wanted to take a chance to pimp the devel­op­ers, design­ers, DBAs and sysad­mins at [...]

October 6, 2007 | Categories: Django, Journalism, Programming, Python, Technology

One thing I absolutely love about Django’s template loading

Is the abil­ity to spec­ify a series of tem­plate fold­ers in your set­tings file. Here’s what we do at work: 1 2 3 4 TEMPLATE_DIRS = ( os.path.join(os.path.dirname(__file__), "templates"), os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "ANOTHERSITE", "templates")), ) It allows us to easily share tem­plates from ANOTH­ER­SITE with sister/sub sites, but when/if you need to over­ride them you just drop your [...]

September 12, 2007 | Categories: Django, Python

My duh moment - Django and it’s lack of strip filter

Had a total ‘duh’ moment today at work. I wanted to per­form the equiv­a­lent of Python’s string.strip method on some Django tem­plate output. I looked on the Django doc­u­men­ta­tion site but I couldn’t find a strip filter. It took me a few min­utes of con­ster­na­tion to figure why the devel­op­ers wouldn’t include such an oft-​needed filter. And then, [...]

August 30, 2007 | Categories: Django, Python

Talking Django at Atlanta Linux Enthusiasts

A quick heads-​up to any Atlanta area Python­istas and Djan­go­is­tas, I’ll be giving a brief talk at the the Sep­tem­ber Atlanta Linux Enthu­si­asts meet­ing. As of this morn­ing their Web site didn’t list the meet­ing, but it’s Sept. 13 at the Emory Law School. In other AJC/Django news, Maura Chace, one of our fan­tas­tic Django developers [...]

August 27, 2007 | Categories: Django, Python

Disclaimer: I work at The Atlanta Journal-Constitution. The opinions expressed here are my own, and do not reflect those of the AJC, Cox Newspapers, Cox Enterprises nor any other party.

Mail carrier N. Sorenson delivering Christmas mail through the snow. (Chicago Daily News/Chicago Historical Society)