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
"Check work" doesn't recognize that I've imported views
I have the line:
from . import views
However, when I check my work, it keeps failing with the text, "Did you import views?"
I don't understand what I'm doing wrong because this is the exact line that is working properly in my project, so why does it think I'm not importing the views?
from django.conf.urls import url from . import views urlpatterns = [ url(r'^$', views.hello_world), ]
Jennifer NordellTreehouse Teacher
Hi there! I agree that this particular Bummer message might be a bit misleading. The problem here really is not in your
import statement, but rather in your
url_patterns. You are trying to get the view
hello_world which likely doesn't exist in this context. The challenge asks you to get the view
index. Simply switching out
index will cause this to pass.
Hope this helps!