Source

HH-Courses / urls.py

1
2
3
4
5
6
7
from django.conf.urls.defaults import *

urlpatterns = patterns('courses.views',
	url(r'^$', view='course_index', name='course_index'),
	url(r'^(?P<slug>.*)/$', view='course_detail', name='course_detail'),
	url(r'^lesson/(?P<slug>.*)/$', view='lesson_detail', name='lesson_detail'),
)