Django cache keys: making them safer
I posted some code to make your Django cache keys safer over at Django snippets the other day. This code evolved at work over several months as we encountered a few caching challenges with memcache. The first problem was that occasionally some of our cache keys would be too long. Memcache only allows keys up to 250 characters. [...]
November 25, 2008 | Categories: Django, Programming, Python, Technology
Django developer wanted at ajc.com
We’re looking for a great Django/Python developer to join our small team at ajc.com. Check out the job posting at Django Gigs or at Craigslist. Here are some of the benefits to working on our team: We’re a small team — but full of great people like Maura and Zellyn Our projects are highly visible — if you’ve spent [...]
November 24, 2008 | Categories: Django, Journalism, Programming, Python, Technology
Django in the Enterprise
Long-time readers know of my dislike for the word enterprise, but the truth is that many of us work for just such a beast. Luckily 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 company. 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 snippet today. It’s a status view for your memcache server(s). I had originally used this snippet, 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() function. It returns a list of tuples — one for each server [...]
February 14, 2008 | Categories: Django, Python, Technology
Journalism job description tag clouds
A colleague of mine, (whom may or may not remember me from my Dow Jones Online Internship), Eric Ulken built a tag cloud of keywords in postings to journalismjobs.com. Not surprisingly, “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 Digital Managing Editor extraordinaire, spoke at a recent Associated Press Managing Editors conference and screened this Soundslides presentation that Emily Murphy and the AJC’s multimedia group put together. I look and sound like a total dweeb, but wanted to take a chance to pimp the developers, designers, DBAs and sysadmins at [...]
October 6, 2007 | Categories: Django, Journalism, Programming, Python, Technology
One thing I absolutely love about Django’s template loading
Is the ability to specify a series of template folders in your settings 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 templates from ANOTHERSITE with sister/sub sites, but when/if you need to override 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 perform the equivalent of Python’s string.strip method on some Django template output. I looked on the Django documentation site but I couldn’t find a strip filter. It took me a few minutes of consternation to figure why the developers 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 Pythonistas and Djangoistas, I’ll be giving a brief talk at the the September Atlanta Linux Enthusiasts meeting. As of this morning their Web site didn’t list the meeting, but it’s Sept. 13 at the Emory Law School. In other AJC/Django news, Maura Chace, one of our fantastic 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.