Task Update
1. Create template for Task Update module.
{% extends 'todo/main.html' %}
{% block content %}
<div class="header-bar">
<a href="{% url 'tasks' %}">← Back</a>
</div>
<div class="card-body">
<form method="POST" action="">
{% csrf_token %}
{{form.as_p}}
<input class="button" type="submit" value="Submit">
</form>
</div>
{% endblock content %}2. Create view function for Task Update module
3. Mapping URLs to Task Create view.
4. Update the task_list.html
add href value to line no. 46 and 48 in task_list.html
5. Run the development server to check the functionality:
Last updated