Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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