-
Neat.
I guess I'm a little surprised that the Django REST Framework isn't mentioned, since I thought that's the go-to for pretty much everyone for this task.
https://www.django-rest-framework.org/
-
Stream
Stream - Scalable APIs for Chat, Feeds, Moderation, & Video. Stream helps developers build engaging apps that scale to millions with performant and flexible Chat, Feeds, Moderation, and Video APIs and SDKs powered by a global edge network and enterprise-grade infrastructure.
-
bleach
Bleach is an allowed-list-based HTML sanitizing library that escapes or strips markup and attributes
This is an excellent point; I should have addressed safety in my article. I'll point out that in my use case, I'm using `safe` on data I create and not any user-generated data.
You should never use `safe` on user data unless you use something like bleach (https://github.com/mozilla/bleach) to sanitize the data. Even then, you should use caution.
Related posts
-
Why Django REST Framework doesn't show your custom validation error messages (and what to do about it)
-
How to Build RESTful APIs with Django
-
Building a REST API with Django REST Framework: A Beginners Guide
-
Emulating Rails-like resource controllers in a server-rendered Django app
-
Using Python to Dump Data into Django Models for Testing Frontend or API Endpoints:A Complete Django REST API Tutorial