Finished 5.1 Wiring Up our form to send a POST request

This commit is contained in:
Jason Zhu 2020-11-08 14:44:57 +11:00
parent 1fb94c9d74
commit 9c102d7add

View File

@ -4,6 +4,11 @@
</head>
<body>
<h1>Your To-Do list</h1>
<input id="id_new_item"/>
<form method="POST">
<input name="item_text" id="id_new_item" placeholder="Enter a to-do item" />
{% csrf_token %}
</form>
<table id="id_list_table"></table>
</body>
</html>