这是我的代码:
@login_required
def signin_complete(request):
return render_to_response('socialauth/signin_complete.html', context_instance=RequestContext(request))
当我运行此 View 时,它总是重定向到 /accounts/login/?next=/
如何将其更改为/other/other
谢谢
最佳答案
关于python - 如何在 django settings.py 中更改 'login_required' 的默认重定向,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4434252/