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
Django URLS in the content is diffence from real django
Hello In Urls lession the code was from django.conf.urls import include,url from django.contrib import admin from . import views
Urlpattrern= url(r'âdmin' ,...
but in real django version it is from django.contrib import admin from django.urls import path urlpatterns = [ path('admin/', admin.site.urls), ]
Dylan Thunn22,658 Points
Ya they need really to update Django. 2.0 was released in 2017, they should at least mention it in all those tutorials. Love TreeHouse but they are kind of slacking in the Django department.
Jeff MudayTreehouse Moderator 28,344 Points
Dylan Thunn is correct-- there are definitely some differences in Django 2.x and if you are creating a new project from scratch, I would totally recommend doing it in Django 2.x. There is still quite a bit of utility in learning Django 1.x (1.9 is installed in Workspaces) and Django LTS (long-term-support) version is 1.11. Since most new Django developers first job opportunity will be maintaining existing code, it is a good experience to be familiar with LTS versions.