Finished 5.1 Wiring Up our form to send a POST request
parent
1fb94c9d74
commit
9c102d7add
|
@ -4,6 +4,11 @@
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1>Your To-Do list</h1>
|
<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>
|
</body>
|
||||||
</html>
|
</html>
|
Loading…
Reference in New Issue