7.8.4 A Regression! Pointing Our Forms at the New URL
parent
11be39eaf2
commit
5dc4127eaa
|
@ -4,7 +4,7 @@
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1>Your To-Do list</h1>
|
<h1>Your To-Do list</h1>
|
||||||
<form method="POST" action="/">
|
<form method="POST" action="/lists/new">
|
||||||
<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>
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1>Your To-Do list</h1>
|
<h1>Your To-Do list</h1>
|
||||||
<form method="POST" action="/">
|
<form method="POST" action="/lists/new">
|
||||||
<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>
|
||||||
|
|
Loading…
Reference in New Issue