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! While you're at it, check out some resources Treehouse students have shared here.

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 Authentication Authentication Requiring Logins

barrett Stunt
barrett Stunt
3,152 Points

Do these methods work on django restframework

I just finished the course on Django Rest Framework and i'm confused with how these default methods of django authentication relate and work with django rest framework's authentication system. I'm primarily interested in what route you would take if building out a mobile app. Thanks!

1 Answer

Avraham Shukron
Avraham Shukron
19,609 Points

DjangoREST Framework uses very similar mechanisms for Authentication and Authorization to that of Django Views.

You can read about that in more details at the official documentation at http://www.django-rest-framework.org/api-guide/authentication/