/explore

Click through on any links that interest you or select the planets on the right to continue exploring the Outer Web.
You are here

davi.sh
| | sam.hooke.me

The home page of Sam Hooke.
2.2 parsecs

Travel
| |
| | www.laceyhenschel.com

Sometimes the endpoints you get when you use a ModelViewSet aren't enough and you need to add extra endpoints for custom functions. To do this, you could use the APIView class and add a custom route to your `urls.py` file, and that would work fine. But if you have a viewset already, and you feel like this new endpoint belongs with the other endpoints in your viewset, you can use DRF's @action decorator to add a custom endpoint. This means you don't have to change your urls.py -- the method you decorate w...
0.9 parsecs

Travel
| |
| | www.django-rest-framework.org

Django, API, REST, Viewsets
1.5 parsecs

Travel
| |
| | geoff.tuxpup.com

How I Start: Django, Tailwind, HTMX (part 1) I wanted to try out some "modern" front-end development for a while, and I did. FastAPI is great. So is Svelte. But even though I found creating APIs that way to be a breeze, building a whole site that way felt much slower and heavier than using traditional server rendering. So I decided to give django a fair shake for a while, and I'm glad I did.
14.1 parsecs

Travel
|