From 17a04704f62ca9764ae6e2b649de79f16fc6d8a1 Mon Sep 17 00:00:00 2001 From: Seth Woodworth Date: Thu, 10 Jan 2013 13:34:19 -0500 Subject: [PATCH] route courses through /school_slug/course_slug/ instead of /course_slug --- karmaworld/urls.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/karmaworld/urls.py b/karmaworld/urls.py index 5c57ce3..36f83f5 100644 --- a/karmaworld/urls.py +++ b/karmaworld/urls.py @@ -17,7 +17,7 @@ urlpatterns = patterns('', #url(r'^/(?P[^/]+)/(?P[^/]+)$', #url(r'^/[a-z0-9\-]+$', CourseDetailView.as_view(), name='course_detail'), - url(r'^(?P[^/]+)$', CourseDetailView.as_view(), name='course_detail'), + url(r'^(?P[^/]+)/(?P[^/]+)$', CourseDetailView.as_view(), name='course_detail'), url(r'^$', ListView.as_view(model=Course), name='home'), ) -- 2.25.1