我有以下与登录相关的设置: LOGIN_REDIRECT_URL = 'dashboard' # tells django which url to redirect after login if no' # url to redirect the user to log in (for example, views using the login_required decorator) 我使用的是django.contrib.auth中的身份验证视图fount (为了简单起见,只包含了三个): from django<