Finally configured Django framework so that it works on localhost.