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.

Jose Lara
12,223 PointsI"m getting an error here, and I don't see the mistake.
I need to import the views from current directory I did
from . import views
from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^$', views.hello_world),
]
3 Answers

Alexander Davison
65,456 PointsIf you are on the first task, you need to remove the first and only element in urlpatterns
. I know you're excited to start appending elements to the list, but that's for the second task.
If you are on the second task, however, I believe you need to put in the correct URL.
I hope this helps. ~alex
*Note:

Ryan S
27,276 PointsHi Jose,
The issue is that the challenge asks you to point to a view named "index" in your url pattern, not "hello_world".
Good luck.

Alexander Davison
65,456 PointsOops, I was paying too much attention on the second-last line of code (the element inside of the urlpatterns
variable) and I didn't notice that XP
Thanks for the catch.
~alex

Jose Lara
12,223 PointsThank you guys!