Gestor de Tareas Django organises work around a single core model calledDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/LucPinheiro/gestor-tarea-django/llms.txt
Use this file to discover all available pages before exploring further.
Tarea. Each task carries a title, description, workflow state, numeric priority, and an optional deadline. Every operation — from first creation to final deletion — flows through a consistent set of views and URLs, so you always know exactly where to go and what to expect.
Creating a Task
Any user (authenticated or not) can open the task creation form at/crear/. The crear_tarea view does not carry the @login_required decorator, so unauthenticated visitors may also submit new tasks. On a successful POST, the new Tarea is saved and the browser is redirected to its detail page at /detalle/<id>/.
Navigate to the creation form
Open your browser and go to:The form is also reachable by clicking the Nuevo button in the top toolbar from any page.
Fill in the task fields
The form is backed by
TareaForm, which exposes the following fields:Short title for the task (maximum 100 characters). Maps to
Tarea.titulo.Full description of the work to be done. Maps to
Tarea.descripcion.Current workflow state. Choose one of:
| Value | Meaning |
|---|---|
Borrador | Draft — not yet ready for work (default) |
Pendiente | Queued and waiting to be started |
En proceso | Actively being worked on |
Completada | Finished |
Numeric priority level. Choose one of:
Defaults to
| Value | Label |
|---|---|
1 | Baja (Low) |
2 | Media (Medium) |
3 | Alta (High) |
1 (Baja).Optional deadline. Use the native date picker or type a date in
YYYY-MM-DD format. Leave blank if there is no fixed deadline.fecha_creada is set automatically by the database (auto_now_add=True) and is not included in TareaForm. You cannot set or change it through the create or edit form.Viewing Task Detail
Every task has a dedicated detail page at/detalle/<id>/. This page shows all stored data, lets you move through the full task list without returning to the list view, and provides one-click controls for changing state and priority.
- Displayed information
- Quick status change
- Quick priority change
The detail view renders the following data from the
A position counter in the top-right corner shows where this task sits in the ordered list — for example 3 / 24 means task number 3 out of 24 total.
Tarea model:| Field | Description |
|---|---|
titulo | Task title displayed as a heading |
descripcion | Full description text |
estado | Current state shown as a colour-coded badge |
prioridad | Priority shown as one, two, or three filled stars (★) |
fecha_limite | Deadline badge (only shown when a date is set) |
fecha_creada | Creation timestamp shown below the title |
Editing a Task
The edit view reuses the sameTareaForm and the same detalle.html template as the create flow, but loads an existing Tarea instance so all fields are pre-populated.
Open the edit form
Navigate to
/editar/<id>/ directly, or click the ✎ (edit) button in the task detail toolbar. A GET request renders the form with the current field values already filled in.Make your changes
All five editable fields —
titulo, descripcion, estado, prioridad, and fecha_limite — are available and work exactly as they do on the creation form.Save
Click ☁ (save) to submit the form via
POST. On success:- Django saves the updated record.
- A green “Tarea actualizada correctamente.” success message is displayed at the top of the page.
- The browser redirects to
/detalle/<id>/.
Deleting a Task
The application supports both single-task deletion with a confirmation step and bulk deletion of multiple tasks selected from the list view.Single deletion
Open the confirmation page
Send a The
GET request to /eliminar/<id>/ — for example, by clicking the 🗑 (trash) icon in the task detail toolbar:confirmar_eliminar.html template displays the task title and asks you to confirm.Bulk deletion
Select tasks
Tick the checkbox next to each task you want to delete. Use the Select All checkbox in the table header to select every task on the current page at once.
Delete selected
Open the ⚙ Acciones dropdown and click 🗑 Eliminar. A confirmation modal appears. Click Eliminar in the modal to confirm.The form submits via A success message confirms how many tasks were removed.
POST to /eliminar-seleccionadas/ with the selected IDs as tareas_seleccionadas values. All matching records are deleted in a single database query: