I think I fixed all reverse('user_home') --> reverse('user_home', kwargs={'user_id':request.user.id})