close to working django app