1

这是我的代码:

@login_required
def signin_complete(request):
    return render_to_response('socialauth/signin_complete.html', context_instance=RequestContext(request))

当我运行这个视图时,它总是重定向到/accounts/login/?next=/

如何将其更改为/other/other

谢谢

4

2 回答 2

2

settings.LOGIN_URL

于 2010-12-13T22:59:33.847 回答
0
@login_required(login_url='/other/other')
于 2013-04-20T16:45:52.853 回答