編寫account下的urls.py文件
編寫login2.html文件
登陸轉(zhuǎn)到的URL配置,是在settings.py內(nèi)配置绳矩,在尾部加上如圖所示的代碼。圖示代碼是轉(zhuǎn)到blog頁面
修改網(wǎng)頁頭部的用戶狀態(tài)玖翅,使登陸用戶顯示用戶登陸的信息翼馆,修改header.html文件
實現(xiàn)退出功能
修改account下的urls.py文件,添加圖示代碼
在header.html內(nèi)補充上退出的超級鏈接
在模版的account下創(chuàng)建一個退出的logout.html
在account下的urls.py內(nèi)聲明退出后的模版