A simple Django app to create and manage a personal todo list.
With this Todo App, users can:
- View a list of todo tasks
- Add new tasks
- Mark tasks as completed
- Edit existing tasks
- Delete tasks
- Clear all completed tasks
- HTMX Integration: The app now uses HTMX to provide a more dynamic user experience with seamless updates and interactions without full-page reloads.
- Dynamic Task Management: Tasks and completed tasks are updated dynamically, improving responsiveness and user interaction.
Data persistence is achieved through Django models, which store task information in a SQLite database.
- Python 3.6 or higher
- pip (Python package installer)
-
Clone the repository:
-
Install dependencies:
-
Run migrations to set up the database:
-
Create an admin user:
-
Run the development server:
Tasks
: Stores task name and completion status.CompletedTask
: Archive of completed tasks.
views.py
: Contains the logic to display, add, edit, complete, and delete tasks.
todo.html
: The main template to render the todo list.
forms.py
: Defines forms for adding and editing tasks.
tests.py
: Includes basic tests for the model functionality.
Contributions are welcome! Please feel free to submit pull requests or open issues to improve the functionality or documentation of this project.