1👍
✅
There is currently no other way that using a third party app to create a REST API in Django.
This is something not natively supported in Django.
But Tastypie and Django Rest Framework are two very good third apps, there’s nothing wrong to use them.
They both have good documentation and there exists lots of posts talking about them.
Once you set your REST API using one of these apps, you can use CURL (like in your example) or Python requests to make post/get/.. requests.
Source:stackexchange.com