Category Archives: 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)](http://www.djangosnippets.org/snippets/597/). I had originally used [this snippet](http://www.djangosnippets.org/snippets/54/), but the regex and socket thing never quite sat right with me. Turns out that django.core.cache has a … Continue reading

Posted in Django, Python, Technology | Leave a comment

Journalism job description tag clouds

A colleague of mine, (whom may or may not remember me from my [Dow Jones Online Internship](http://indystar.com)), [Eric Ulken](http://ulken.com/blog/archive/000145.html) built a tag cloud of [keywords in postings to journalismjobs.com](http://ulken.com/blog/archive/000145.html). Not surprisingly, “blogs”, “interactive”, “flash” and “graphics” top the list — … Continue reading

Posted in Journalism, Python | Leave a comment

AJC development group mentioned at APME

We’re in [film!](http://alt.coxnewsweb.com/ajc/soundslides/ajc_apme/soundslider.swf) Robin Henry, our Digital Managing Editor extraordinaire, spoke at a recent [Associated Press Managing Editors conference](http://www.apme.com/) and screened this [Soundslides presentation](http://alt.coxnewsweb.com/ajc/soundslides/ajc_apme/soundslider.swf) that Emily Murphy and the [AJC](http://www.ajc.com)’s multimedia group put together. I look and sound like a … Continue reading

Posted in Django, Journalism, Programming, Python, Technology | Leave a comment

One thing I absolutely love about Django’s template loading

Is the ability to specify a series of template folders in [your settings file](http://www.djangoproject.com/documentation/settings/#template-dirs). Here’s what we do at [work](http://www.ajc.com): 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 … Continue reading

Posted in Django, Python | Leave a comment

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](http://www.python.org/doc/2.3/lib/module-string.html#l2h-819) on some [Django template output](http://www.djangoproject.com/documentation/templates/). I looked on the [Django documentation site](http://www.djangoproject.com/documentation/templates/) but I couldn’t find a strip filter. It took me … Continue reading

Posted in Django, Python | 11 Comments

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](http://www.ale.org/new/index.php). As of this morning their Web site didn’t list the meeting, but it’s Sept. 13 at … Continue reading

Posted in Django, Python | Leave a comment