I want to create cross platform site in Django, which can work with other clients, like my own c++ apps. Imagine someone creating social media in which you can post videos and articles. What I want is to be able to get all the articles and videos in my c++ app, also be able to do the same in my web browser. Here’s some questions:
- Can I use REST Framework only on authentication and app requests, and for the browser requests simply render HTML file using Django’s built-in render() func? Logic for that is when you are in browser you are going on URLs like my-site.com/, my-site.com/about-us, etc., but when you are in c++ app you are going like my-site.com/api/v1, my-site.com/api/v1/about-us. Will it work like that?
- If it will work like that, how to make you authorize both in browser and in app using REST Framework, but for other parts of the site except for authorization use separate functionality (as I said earlier)?
Any help appreciated.
New contributor
user26482297 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.