Django templates offer the builtin tag cycle for alternating between several values at different points in a template (or for loop in a template) but this tag d
The easiest answer might be: "give up and use jQuery." If that's acceptable it's probably easier than fighting with Django's templates over something so simple.