ForeignKeyとForm
Django×Python (LLフレームワークBOOKS)
- 作者: 露木誠
- 出版社/メーカー: 技術評論社
- 発売日: 2009/02/16
- メディア: 単行本(ソフトカバー)
- 購入: 10人 クリック: 127回
- この商品を含むブログ (35件) を見る
{% if user.is_authenticated and form %} <div id="note_form"> <form action="{% url post_note %}" method="post"> <table> {{ form }} <td></td><td class="form_button"><input type="submit" value="つぶやく" /></td> </table> </form> </div> {% endif %}
サンプルにあった。ちゃんと読めよ。自分。