开发者

how to change 'login_required' 's Default Redirection in django settings.py

this is my code:

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

when i run this view , it always Redirect to /accounts/login/?next=/

how to change this to /other/other

tha开发者_JAVA百科nks


settings.LOGIN_URL


@login_required(login_url='/other/other')
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜