The Black Wire and the White Wire

The Black Wire and the White Wire

On the tension between "traditional" IT, that needs to be less risk averse, and the innovative, risk taking groups found in many companies. I like to think my group is on the white wire, but I totally appreciate the black wire folks.

Posted in Blogmarks | Comments Off on The Black Wire and the White Wire

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 sister/sub sites, but when/if you need to override them you just drop your new template your site’s templates folder and you’re off to the races.

###Another template tip
If you use the tip above, I’d recommend putting templates that are explicity shared in a templates/shared folder.

Then you can do things like:


{% extends 'shared/shared_somethingorother.html' %}

It’s a minor tip, but it helps prevent collisions and alerts developers that these templates shouldn’t have any site specific code in them.

Posted in Django, Python | Comments Off on One thing I absolutely love about Django’s template loading

Send SMS from Django applications

Send SMS from Django applications

A nice easy wrapper around turning a user’s cell phone number into an SMS-addressable e-mail address.

Posted in Blogmarks | Comments Off on Send SMS from Django applications

Bricks, cities, and software

Bricks, cities, and software

I’ve often said that building good software is a lot like building a city — it’s never done, and it’s always changing

Posted in Blogmarks | Comments Off on Bricks, cities, and software

path.py

path.py

I’d like to nominate this for inclusion in the Python stdlib. I use this so often…

Posted in Blogmarks | Comments Off on path.py