NewVisitorTest() in functional_tests almost passes, but needs DRY refactor; pair of functions added to HomePageTest() in apps.dashboard.tests; home_page() FBV in .views streamlined using django templating; templating also applied & form w. csrf functionality added to to-do list in home.html

This commit is contained in:
Disco DeDisco
2025-12-30 23:47:25 -05:00
parent 1ddabe4448
commit f6b73a17ea
4 changed files with 30 additions and 10 deletions

View File

@@ -4,9 +4,12 @@
</head>
<body>
<h1>Your To-Do List</h1>
<input id="id-new-item" placeholder="Enter a to-do 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">
<tr><td>1: {{ new_item_text }}</td></tr>
</table>
</body>
</html>