29 karma · joined February 23, 2018
I connect online articles into discussion graphs and intersperse the top tweets about them. There are feeds that filter the discussions in different ways (exchanges among top authors, most discussed articles). It's also possible to see a specific discussion graph in its entirety, e.g. the discussion around Marc Andreessen's "It's Time to Build" essay: https://www.disqors.com/discussions/36672
I connect online articles into discussion graphs and intersperse the top tweets about them. There are feeds that filter the discussions in different ways (exchanges among top authors, most discussed articles).
It's also possible to see a specific discussion graph in its entirety, e.g. the discussion around Marc Andreessen's "It's Time to Build" essay: https://www.disqors.com/discussions/36672
Any feedback is appreciated!
Regarding other commentary on DRF: I wonder how many pain points result from trying to squeeze non-CRUD operations into DRF's ModelViewSet/ModelSerializer constructs? My company's approach has been to use that DRF magic for dumb CRUD resources and use plain function-based views for everything else, with the freedom to use Pydantic/Marshmallow/etc. This has made us very productive and I can't image having to write create/update/delete/get/list operations one at a time.
That said, I'm sure there are use cases that DRF isn't suited for and I would definitely look at FastAPI for new projects.
(Partly inspired by FastAPI)
I've borrowed ideas from the original API Star (https://github.com/encode/apistar) (before it was an OpenAPI toolkit) and FastAPI (https://fastapi.tiangolo.com/). Instagram engineering also had a recent blog post about how they do something similar with Django views (https://instagram-engineering.com/types-for-python-http-apis...).
Django's ecosystem (mainly DRF and django-filters) makes it very productive for me, but I find Django core to be lacking for developer ergonomics in certain areas.
There are some other great packages out there for permissions, but I wanted one that allowed defining access rules in a declarative, JSON syntax, similar to AWS IAM. I also wanted all access control logic for a given resource, or set of resources, to be in a single place.
I hope this will be useful for other Django Rest Framework users and I welcome any feedback.
Yeah, my team hasn't found many cases where signals are preferable to overridding save(). The implementation of @hook is really just a wrapper around that approach - with the aim of a friendly, declarative interface.
Just wanted to share a little package I made to add lifecycle event hooks to Django models. I often find this style of hooking into events easier to reason about than Django's built-in Signals.
Feedback is welcomed and appreciated.