I'm wondering if there is a way to access REST API within the Django app.
I created a REST API using the Django rest framework. In the same project, I'm having another app in which I want to fetch data using my own rest API.
If you want to fetch that data on the client side you need to use and make an http request in javascript.
If you want to fetch that data on the server side you already have the data, no need to fetch from the api, if you really need to do that there is the requests module.
access REST API within the Django app? You can use the framework by importing it (import rest_framework) in your Django project, provided you've set it up correctly