Category Archives: Django

Django in the Enterprise

Long-time readers [know](http://heisel.org/blog/2005/06/21/best-quote-on-enterprise-development/) of my [dislike](http://heisel.org/blog/2005/04/09/enterprise-its-not-just-a-crappy-tv-show/) for the word [enterprise](http://heisel.org/blog/2005/01/11/thought-of-the-day-enterprise/), but the truth is that many of us work for just such a beast. Luckily I get to use [Django](htttp://djangoproject.com) at my [job](http://www.ajc.com) and I thought I’d share what little … Continue reading

Posted in Django, Python | 2 Comments

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 | Comments Off on My first Django snippet: Another Memcache status view

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 | Comments Off on AJC development group mentioned at APME

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 | Comments Off on One thing I absolutely love about Django’s template loading

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