Is it possible to do without templates in Django?

I'm new to web development. And I have a question: is it Possible to do without templates in Django?
The fact that I taught Vue.JS and I would not like to interfere Vue.JS with templates.
Is it possible to pass variables to a JSON or as something else?
I am interested in not only how to do it, but is this the solution supported.
April 3rd 20 at 18:47
3 answers
April 3rd 20 at 18:49
Solution
Of course. Rendering templates in Django is just one of the batteries, which you can use. In the world of Single Page Application with Django this option nobody uses, because the application just need to set "raw" data, mainly in JSON format. You can build your app which will work with JSON using standard Django methods, but it is better suited for this Django Rest Framework. DRF will allow with a minimum amount of code to write a working application to work with VueJS. You will only need to concentrate on business logic, all the rest will do the DRF.
April 3rd 20 at 18:51
Solution
Of course. DRF use, templates are not necessary.
April 3rd 20 at 18:53
Solution
Yes, you can. Yes, this is a normal scenario supported work Django.

Find more questions by tags Django