I am developing a website where i have to show
1) web pages with html content-type
2) also provide api json end points to develop web or mobile apps.
Presently for html web pages i have used djangos views and forms.
And for api i was using Django rest frameworks views and serializers.
But after going through DRF i have found that DRF can render multiple formats.
HTML & Forms REST framework is suitable for returning both API style responses, and regular HTML pages. Additionally, serializers can used as HTML forms and rendered in templates.
http://www.django-rest-framework.org/topics/html-and-forms/
You can use TemplateHTMLRenderer either to return regular HTML pages using REST framework, or to return both HTML and API responses from a single endpoint.
http://www.django-rest-framework.org/api-guide/renderers/#templatehtmlrenderer
Since with one view (one endpoint) i can get both the html and api will that not make my coding efforts less.
I am planning to use only DRF views and searializers instead of DJango forms and views for any type of content.
What will be the setbacks if I only use DRF.