Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
次のようなテンプレートにPythonリストを渡しました
l=['text','there is no salary','I need alcohol','and I want be high']
私はid="raw"のテンプレートテキストエリア内にあります。リスト l のすべての要素を 1 つの文字列に連結して textarea に表示する方法は?
次のようなことができます:
<textarea>{{ l|join:"" }}</textarea>
テンプレート フィルターに関するDjango ドキュメントを参照してください。