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')
精彩评论