Image resizing on file uploads. Doing it the easy way.

Posted by: barbara | Date: Jan 13, 2010 | Category: django python | Comments: 14

Let me start with this proviso: Math is not my strong subject (okay, just stop right there with the Barbie jokes). I'll do just about anything to avoid writing complex equations. And most of the time, I don't have to. Most of the time, I can find alternative solutions, dependent ...

Read More

Working with the Django admin and legacy databases, pt.3

Posted by: barbara | Date: May 01, 2009 | Category: django | Comments: 6

Part 1 | Part 2

After you've run inspectdb and done all your syncing and basic admin setup, take a peek at the models you generated - depending on the state of your legacy db, you've probably wound up with something that looks like this (column names have ...

Read More

Working with the Django admin and legacy databases, pt.2

Posted by: barbara | Date: Apr 26, 2009 | Category: django | Comments: 7

By this time, I'm several weeks into the project and it's time to get you all caught up - let's see if I can break this down into digestable bites.

(Btw, don't expect it to you take this long - this isn't an officially sanctioned work project for me, so ...

Read More

Working with the Django admin and legacy databases, pt.1

Posted by: barbara | Date: Apr 16, 2009 | Category: django | Comments: 3

This is most likely going to be at least a three-parter, and I'm not getting into any code samples in this first one. I just wanted to give some background into the project I'm working on, so feel free to skip ahead.

As of this writing, I'm working at a ...

Read More

Posting to the Twitter API on an admin change

Posted by: barbara | Date: Apr 07, 2009 | Category: django | Comments: 9

For context, I've been working on a project that involves submitted messages going through a manual review process - once they've been approved in the admin, each message should be posted to Twitter. My Twitter API script is over here, for reference.

I had originally thought I'd set up ...

Read More