I write functions to interact with the REST api in PHP and use them in theme code.
Lets say you have a page for location based doctor search. When the search form in this page is submitted, wordpress makes API calls to django backend where real search happens and a list of doctors is returned to wordpress. Wordpress then genereates html and send it to the browser.
Similar process for dislaying a specific doctor details.
The CRUD and other application logic for doctor data is handled in Django. And with rest API you can then create a web based UI or a mobile application.
Lets say you have a page for location based doctor search. When the search form in this page is submitted, wordpress makes API calls to django backend where real search happens and a list of doctors is returned to wordpress. Wordpress then genereates html and send it to the browser.
Similar process for dislaying a specific doctor details.
The CRUD and other application logic for doctor data is handled in Django. And with rest API you can then create a web based UI or a mobile application.