This repository is associated with a series of articles on dev.to documenting the author's learning journey with HTMX and Django. The series covers the creation of a to-do application using Django and HTMX, with a focus on Test-Driven Development (TDD) using pytest.
- Creating a To-Do App with Django and HTMX - Part 1 Creating the Django project with uv
- Creating a To-Do app with Django and HTMX - Part 2: Adding the Todo model
- Creating a To-Do app with Django and HTMX - Part 3: Creating the frontend and adding HTMX
- Creating a To-Do app with Django and HTMX, part 4: adding new Todos
- Creating a To-Do app with HTMX and Django, part 5: Testing the views
- Creating a To-Do app with Django and HTMX, part 6: implementing Delete with tests
- Django: A high-level Python web framework that encourages rapid development and clean, pragmatic design.
- HTMX: A library that allows you to access modern browser features directly from HTML, making it easier to build dynamic web applications.
- pytest: A framework that makes building simple and scalable test cases easy.
To get started with this project, clone the repository and install the dependencies:
git clone https://github.com/yourusername/todomx.git
cd todomx
uv sync
To run the tests, use the following command:
uv run pytest
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License.