If you've checked out my course on Django with HTMX and thought, 'I wish this was with FastAPI,' then you're in luck 😎
My new course “Full-stack FastAPI with HTMX and Tailwind” is out!
@testdrivenio@htmx_org@FastAPItestdriven.io/courses/fastap…
Permissions in Django Rest Framework
testdriven.io/blog/drf-permi…
This article looks at:
🔸How DRF permissions work
🔸The differences between 'has_permission' and 'has_object_permission'
🔸When to use 'has_permission' and 'has_object_permission'
by @GirlLovesToCode#Django 🐍
Django REST Framework Views - Generic Views (part 2 of a 3 part series!)
testdriven.io/blog/drf-views…
Use Django REST Framework's Generic Views to prevent repeating certain patterns over and over again as you build your APIs.
by @GirlLovesToCode#Django
Another Python Testing Tip is out🚀
create_autospec – easily ensure that mocked objects are called correctly👇
Subscribe to the newsletter to not miss the next one 📩
python-testing.com/2025/03/1…
Django tip:
Run python manage.py check --deploy before deploying to catch critical settings issues like missing ALLOWED_HOSTS. It highlights best practices to secure your app in production environments.
🐴 Django-related deals for Black Friday! 🐴
My annual post gathering deals from Django-related creators is up.
Check it out for discounts on books, courses, and tools!
adamj.eu/tech/2024/11/18/dja…
Django tip:
You can use custom template tags to add dynamic behavior in templates.
Create tags in a "templatetags" directory, use "@register.simple_tag" to define them, and "{% load your_tag_file %}" to access them in templates.
Example 👇