1. Scott Nixon
  2. HH-Courses

Source

HH-Courses / urls.py

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

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