7.5.2+ A New View Function

This commit is contained in:
Jason Zhu 2020-11-11 13:36:02 +11:00
parent d2d72da60d
commit 2e3ddeb036

View File

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