Added forwarding middleware from official Django docs