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 trialeliamani seushi
5,782 PointsWe 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)),
]
1 Answer
adrian miranda
13,561 PointsIt'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".
eliamani seushi
5,782 Pointseliamani seushi
5,782 Pointsi managed to solve it just after posting it ,the challenge jst asked me to import views module but i jumped on doing extra un needed stuff at that moment