0
嗨:)我有一個模板雙擴展系統的小問題。我有一個計劃:django雙「擴展」,登錄問題
base.html ---> index.html ---> something.html
當我登錄到我已經喜歡了訪問所有無形的塊(匿名用戶不可見的塊)的網站:
{% if user.is_superuser %}
blabla
{% endif %}
所以「布拉布拉」 是對我來說可見的,因爲我是超級用戶,而且我已登錄。它在base.html,index.html中正常工作,但它在something.html中的不起作用。爲什麼??簡單看起來像用戶:'超級用戶'註銷。
不應該有兩次延長任何問題。我認爲你需要向我們展示你的代碼以幫助我們。 – Alasdair 2009-12-29 13:30:16