Django & HTMX App - Adding Date & Category Filters | pytest tests

Published: 23 May 2024
on channel: BugBytes
3,745
187

☕️ 𝗕𝘂𝘆 𝗺𝗲 𝗮 𝗰𝗼𝗳𝗳𝗲𝗲:
To support the channel and encourage new videos, please consider buying me a coffee here:
https://ko-fi.com/bugbytes

⭐Top resource to learn Python - https://datacamp.pxf.io/kOjKkV ⭐

In this video, we'll add date & category filters to our app, allowing users to filter their transactions between a start and end date, and filter down to one (or more) categories.

We'll also add pytest functions to test this functionality.

Github: https://github.com/bugbytes-io/Django...

📌 𝗖𝗵𝗮𝗽𝘁𝗲𝗿𝘀:
00:00 Intro
00:40 Extending django-filter filterset with start & end date
03:46 Adding date filter to form
07:20 Adding category filter to filterset
11:02 Testing filters with pytest

𝗦𝗼𝗰𝗶𝗮𝗹 𝗠𝗲𝗱𝗶𝗮:
📖 Blog: https://bugbytes.io/posts/
👾 Github: https://github.com/bugbytes-io/Django...
🐦 Twitter:   / bugbytesio  

📚 𝗙𝘂𝗿𝘁𝗵𝗲𝗿 𝗿𝗲𝗮𝗱𝗶𝗻𝗴 𝗮𝗻𝗱 𝗶𝗻𝗳𝗼𝗿𝗺𝗮𝘁𝗶𝗼𝗻:
django-filters: https://django-filter.readthedocs.io/...
HTMX: https://htmx.org/docs/


#python #django #webdevelopment #htmx