Task Create Module
1. Create template for Task Create 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 Create module
3. Mapping URLs to Task Create view.
4. Update the task_list.html
add href value to line no. 18 and 49 in task_list.html
5. Run the development server to check the functionality:

Last updated