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 trialmrsands
Courses Plus Student 13,641 PointsCan I have the solution?
I'm not sure I actually need help understanding anything here but this video is very out of date. I've tried like 50 different configurations and I was able to get part 1 to work but when I added the html template and it kept saying I then had step 1's requirements wrong. I have no idea how to make this challenge correct. Note to treehouse, fix out of date courses please. This dude's teaching is awesome but the video is old as heck.
from django.conf.urls import url, include
from . import views
urlpatterns = [
url(r"^", include("accounts.urls")),
url(r"^", include("django.contrib.auth.urls"))
]
3 Answers
Jeff Muday
Treehouse Moderator 28,720 PointsA major revision is due. Fortunately, Django 3.x is a bit easier, but not substantially different.
It's a fairly complicated process to update a course and its associated Challenges because of the version changes (both Python 2.x and Django 3.x). For the mean-time it's about the best course/challenges for the money (I might be biased ;-)
Enjoy Django and Python-- Cheers!
mrsands
Courses Plus Student 13,641 PointsThanks, it looks like Treehouse took the old videos down! I'm excited about the updates. I do find Django to be much easier than it was a few years back. Doing it on VS code instead of the testing simulator gives a lot better feedback. Thanks for your help!
Jeff Muday
Treehouse Moderator 28,720 PointsThis one assumes quite a bit from the student. Especially since current documentation is for Django 3.x. I hate to say only look at Django 1.11 LTS (long-term support), but that version matches up with the version Kenneth is using.
Good luck with Django... it's a great framework!
from django.conf.urls import url, include
from . import views
urlpatterns = [
url('accounts/', include('django.contrib.auth.urls')),
]
The HTML assumes you have a form
and a csrf_token
<h1>Log into your account</h1>
<form method="post">
{% csrf_token %}
{{ form }}
</form>
mrsands
Courses Plus Student 13,641 PointsDeprecated since version 3.1, which came out in August 2020. Not too bad I suppose but this is also a paid service. It's not like they date their videos so you know not to waste time when they're out of date. There's way too many things in a framework to learn to waste time on deprecated methods. Ken's a great teacher, I hope he can give us a 2021 update on his videos.
Chris Freeman
Treehouse Moderator 68,454 PointsChris Freeman
Treehouse Moderator 68,454 PointsYou can review solutions from other posts on this challenge