從django.contrib.auth.decrators import login_required 2.給views中相應的function新增@login_required裝飾器 3.在settings中新增LOGIN_URL=YOUR_URL
確定! 回上一頁