html +='<a href="' + urland + '">' + str(Dag.dag_id) + '</a><br>'
django.db.models.query_utils.deferredattribute對象=「」在=「」 0x040adbf0 =「」在django框架下解析下面一行時,服務器頁面是空的.Inspect元素說這個錯誤?
html +='<a href="' + urland + '">' + str(Dag.dag_id) + '</a><br>'
django.db.models.query_utils.deferredattribute對象=「」在=「」 0x040adbf0 =「」在django框架下解析下面一行時,服務器頁面是空的.Inspect元素說這個錯誤?
有沒有可能是你正在使用的數據庫屬性,其價值還沒有被加載?
Determine if an attribute is a `DeferredAttribute` in django
給您的視圖的respose,你如何渲染數據給該模板。 你的問題並不清楚..
試試這個..
的html + = '{{Dag.dag_id}}
'
歡迎的話,你可能需要採取的[旅遊]( https://stackoverflow.com/tour)。請提供更多信息和[最小,完整和可驗證示例](http://stackoverflow.com/help/mcve)。 – Nuageux
請問你是如何通過這種模板,預期的結果是什麼,與這些行不可能爲任何人來幫助你 – Exprator
謝謝你的回答。其實我不能指出什麼問題......有很多...... – uthay