Tag django (1)

a day of unnecessary stress
Mood: busy
Posted on 2008-02-19 10:01:00
Tags: django work programming
Words: 282

First I was stressed about a recruiting meeting, which ended fine and without my being asked any questions. Then I was stressed about playing bridge with onefishclappin and the gang - it went fine, I had a lot of fun and I think I played at least well enough not to embarrass myself (or onefishclappin). Duplicate is a really nice format, and the bidding boxes are very elegant. 24 hands in 3 hours is a lot, though - my brain was fried by the end!

I was also stressed by a horrendously tricky bug at work, but that's worth stressing over, at least during work hours.

Carpet costs more than we thought it would (anyone surprised?) but it'll be fine. I just want to get the damn thing installed, really.

Now I'm stressed about taking my MacBook in today to see if they can fix my "Control" and "v" keys. That would make me a happy person.

Django question: (sorry yerfdogyrag, meant to ask you last night but see earlier bit about brain-frying) On my main page, I want a drop-down box that selects which person to see gifts for, and then some way to do that. Two options I've come up with:

- Use a <form> with a <select>, and GET the results to a different page. The problem with this is that the URLs get kinda ugly, which I'm not thrilled with. Should I do a redirect to the nicer-looking URL?

- Do some javascript stuff in the <select> element that changes the target of a link to the nicer-looking URL. But, I'm currently using the newforms library to generate the form - is there a good way to insert javascript in the onChange handler?

6 comments

This backup was done by LJBackup.