Recent Posts

Archive

2012

2011

2010

2009

2008

2007

2006

Tags

Authors

Brad Montgomery

Feeds

RSS / Atom

Blog

Viewing posts tagged Programming

Convert Tables to Unordered Lists

May 5th, 2010 In: None By: Brad Montgomery 9 comments

If you've ever had the pleasure of working with old HTML content, you've surely seen some <table>'s where they don't belong. Lately, that's the sort of thing I've been dealing with on a regular basis, and for some reason, I often see a list of information in a table.

read more

Resize the iTunes Window

Jan. 1th, 2010 In: None By: Brad Montgomery 1 comment

My Macbook Pro is my main machine. At the office, I connect it to a 20" Cinema display. At home, I connect it to a 24" Samsung Monitory (Model 2494SW Glossy Black, which I really like, btw.)

read more

Dynamically Displaying Fields in a ModelForm

April 4st, 2009 In: None By: Brad Montgomery 4 comments

The Problem: I want to dynamically include some fields in a ModelForm based on some external criteria. Sometimes I want the fields displayed, sometimes I don't.

read more

How to Set up a Foreign Key Constraint in MySQL

April 4st, 2009 In: None By: Brad Montgomery 11 comments

The default storage engine in MySQL (MyISAM) does not support Foreign Key constraints. If you want to use Foreign Keys in Mysql, you need to use InnoDB.

read more

Add a Context Processor for your Django app using Sites

Jan. 1th, 2009 In: None By: Brad Montgomery 24 comments

I've recently refactored a significant number of my Django Apps so that they include the "sites" framework. Essentially, this allows me to use the same code (and database) for multiple sites.

read more

Page 1 of 6: