Here's a fixed-up version of the views.py for the graphs app in Django. Just copy it to surftrackr/graphs/views.py. Thanks to Dave for the info.
As ever, don't hesitate to send me any bug reports or problems you encounter: I'll do my best to get back to you.