1 from django.conf.urls import patterns, include, url |
1 from django.conf.urls import patterns, include, url |
2 |
2 |
3 # Uncomment the next two lines to enable the admin: |
3 # Uncomment the next two lines to enable the admin: |
4 # from django.contrib import admin |
4 from django.contrib import admin |
5 # admin.autodiscover() |
5 admin.autodiscover() |
6 |
6 |
7 urlpatterns = patterns('', |
7 urlpatterns = patterns('', |
8 # Examples: |
8 # Examples: |
9 # url(r'^$', 'hp.views.home', name='home'), |
9 # url(r'^$', 'hp.views.home', name='home'), |
10 # url(r'^hp/', include('hp.foo.urls')), |
10 # url(r'^hp/', include('hp.foo.urls')), |
|
11 url(r'^$', 'hp.views.all_videos', name='home'), |
|
12 url(r'^video/(?P<content_id>.*)$', 'hp.views.show_video_details', name='video_details'), |
|
13 |
|
14 url(r'^api/1.0/', include('hp.api.urls')), |
11 |
15 |
12 # Uncomment the admin/doc line below to enable admin documentation: |
16 # Uncomment the admin/doc line below to enable admin documentation: |
13 # url(r'^admin/doc/', include('django.contrib.admindocs.urls')), |
17 # url(r'^admin/doc/', include('django.contrib.admindocs.urls')), |
14 |
18 |
|
19 |
15 # Uncomment the next line to enable the admin: |
20 # Uncomment the next line to enable the admin: |
16 # url(r'^admin/', include(admin.site.urls)), |
21 url(r'^admin/', include(admin.site.urls)), |
17 ) |
22 ) |