1 min readMay 24, 2019
I’m not quite sure what you mean? If you’re using the Django templating engine, then you probably don’t need the REST API. You can just pass the values straight to the template on the backend.
Otherwise, accessing data from the REST API is the same as fetching data from any API. You could do it in a template with a bit of JavaScript and the fetch()
API. Or, use a library like axios or jQuery’s AJAX requests.