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 trial

Python

Pedro Dias
Pedro Dias
12,072 Points

Receiving the following Error on my page -ViewDoesNotExist at /courses

Could not import 'courses.urls'. View does not exist in module courses.

'''' The Code below is what i have for my urls.py found within my learning_site folder, has anyone experienced this problem and have been able to figure out where i might have gone wrong? ''''

from django.conf.urls import url from django.conf.urls import include from django.contrib import admin

from . import views # import from same directory bring in views

urlpatterns = [ url(r'^courses/', 'courses.urls',), url(r'^admin/', admin.site.urls), url(r'^$', views.hello_world), # takes us to the hello_world view.