def login_redirect(request):
"""Convenience method to return a redirect with "next" populated.
:param request: Sanic request.
:return: Redirect response.
"""
return redirect('{0}?next={1}'.format(settings.AUTH_CONFIG['login_url'], request.path))
评论列表
文章目录