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.

Top writer in Technology | Backend Web Developer | bennettgarner.com

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store