Django REST Framework recipes
3 tested Django REST Framework integration recipes with Django, pytest-django, djangorestframework-simplejwt, django-filter. Exact pinned versions and a last-passed receipt, last run 2026-10-15.
passed3/3python
Django 6 + Django REST Framework model API with pytest-django
A DRF ModelViewSet with a serializer, router and token-free permissions, tested with pytest-django and APIClient on in-memory SQLite.
django@6.1.2djangorestframework@3.18.3pytest-django@4.14.0
last passed 2026-10-15 14:11 UTC
passed5/5python
Django REST Framework JWT auth with simplejwt, tested offline
Obtain and refresh JWT pairs with simplejwt, add custom claims, protect a DRF view, and test expired-token rejection on sqlite in-memory with pytest-django.
django@6.1.2djangorestframework@3.18.3djangorestframework-simplejwt@5.5.1
last passed 2026-10-15 14:11 UTC
passed5/5python
DRF ModelViewSet with django-filter range, exact and ordering filters
A ModelViewSet with a django-filter FilterSet for price ranges, exact name and ordering, plus page-number pagination, configured in code and tested offline with APIClient on in-memory SQLite.
django@6.1.2djangorestframework@3.18.3django-filter@26.2.0
last passed 2026-10-15 14:11 UTC
Used together with Django REST Framework
Djangopytest-djangodjangorestframework-simplejwtdjango-filter