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 に答える