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
We need to add a URL for the view we created in the last challenge. First, though, import the views module from the curr
same code works in my local pc,but it doesnt work here
from django.conf.urls import include, url from django.contrib import admin from . import views urlpatterns = [ url(r'^admin/', include(admin.site.urls)), ]
It's not quite clear what you are trying to do, or where you are running into the problem. You seem to be saying you are at the point where you have to import views from the current directory. If that is the case, I'm not sure why you are doing some of the other things, as they look a bit more advanced. Anyway, if that is where you are, are you sure are in the right directory when you run it?
Another thing that looks a little odd is the comma at the end of the call to "url".