为什么 RedirectIfAuthenticated 里面不能用 return redirect ('home');?
我试着用了一下,按照路由的定义home应该直接跳到首页才对,但是还是跟原来一样跳转到了'/home',是因为这边不能用路由写的规则吗?
推荐文章: