0
應該在哪裏處理'會話相關的東西'。例如:Django推薦的會話信息練習
# Set a session value:
request.session["fav_color"] = "blue"
# Get a session value -- this could be called in a different view,
# or many requests later (or both):
fav_color = request.session["fav_color"]
這應該在view
?在__init__
?在model
?例如,如果我存儲大量會被許多視圖/頁面訪問的會話變量?