Hacker News new | ask | show | jobs
by zerstroyer 3916 days ago
This is interesting. I have written a django backend written for an organization already having a wordpress site. Having never written a piece of php code i must ask: Are you aware of any resources that could be particularly helpful for the php/wordpress part? Or is it more like embedding a lot of javascript into your wordrpess site?
1 comments

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.