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 trialSergio Cruz
15,550 PointsWhy is Kenneth also including django.contrib.auth.urls in the accounts/ url?
What is the purpose of that include? I don't have that in my project and I'm able to login and signup users with Djangos built in auth.
1 Answer
Chris Komaroff
Courses Plus Student 14,198 PointsIn the Django Authentication course Kenneth showed how to re-use the Django admin views and urls to create login and signup views. Faster than the normal way to use Django auth. I think important thing is to have 127.0.0.1:8000/accounts be url where github oauth connects with your website. The source code he uses is available for download if you want it under Project Files.
Jeff Muday
Treehouse Moderator 28,720 PointsJeff Muday
Treehouse Moderator 28,720 PointsYou're right Sergio. I find that was unnecessary (unreachable). My theory is that it was used during development. See the comments in github repository below:
https://github.com/django/django/blob/master/django/contrib/auth/urls.py