working django implementation