Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Python Django REST Framework RESTful Django What is Django REST Framework?

Christopher Ekin
Christopher Ekin
2,046 Points

Mixing REST API with standard Django views

Hi guys, Is it normal practice to mix generic Django views with a REST API? So if you serve the initial page using views, but then handle more complex JavaScript data work with the REST client. Does the authentication get messed up? Many thanks, Chris

1 Answer

Sergio Cruz
Sergio Cruz
15,550 Points

When using a REST API is more common to only use it to fetch JSON data and then let the front-end handle the display. You could use some framework like Angular or React for the front-end