Finished 5.1 Wiring Up our form to send a POST request

chap5
Jason Zhu 2020-11-08 14:44:57 +11:00
parent 1fb94c9d74
commit 9c102d7add
1 changed files with 6 additions and 1 deletions

View File

@ -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>