Sample lighttpd conf:
$HTTP["host"] == "d.gould.in" { proxy.server = ( "" => ( ( "host" => "127.0.0.1", "port" => 20020 ) ) ) }
Set up a reverse proxy ssh tunnel:
ssh -NR20020:127.0.0.1:8000 gould.in
Then run your local web server as normal:
./manage.py runserver 8000