一、使用login_required函數進行登入驗證。 1、引入函數:from django.contrib.auth.decorators import login_required 2、需要配置跳轉路由,在setting中配置LOGIN_URL= ...
確定! 回上一頁