src/hp/urls.py
author ymh <ymh.work@gmail.com>
Wed, 14 Nov 2012 16:29:01 +0100
changeset 41 b6010b3d6ea8
parent 38 0fe2f3f5466f
permissions -rw-r--r--
add proxy, model, and correct embed_player
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
37
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
     1
from django.conf.urls import patterns, include, url
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
     2
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
     3
# Uncomment the next two lines to enable the admin:
38
0fe2f3f5466f add basic pages and api endpoints
ymh <ymh.work@gmail.com>
parents: 37
diff changeset
     4
from django.contrib import admin
0fe2f3f5466f add basic pages and api endpoints
ymh <ymh.work@gmail.com>
parents: 37
diff changeset
     5
admin.autodiscover()
37
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
     6
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
     7
urlpatterns = patterns('',
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
     8
    # Examples:
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
     9
    # url(r'^$', 'hp.views.home', name='home'),
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
    10
    # url(r'^hp/', include('hp.foo.urls')),
38
0fe2f3f5466f add basic pages and api endpoints
ymh <ymh.work@gmail.com>
parents: 37
diff changeset
    11
    url(r'^$', 'hp.views.all_videos', name='home'),
0fe2f3f5466f add basic pages and api endpoints
ymh <ymh.work@gmail.com>
parents: 37
diff changeset
    12
    url(r'^video/(?P<content_id>.*)$', 'hp.views.show_video_details', name='video_details'),
41
b6010b3d6ea8 add proxy, model, and correct embed_player
ymh <ymh.work@gmail.com>
parents: 38
diff changeset
    13
    url(r'^kc_proxy/(?P<path>.*)$', 'hp.views.kc_proxy', name='kc_proxy'),
38
0fe2f3f5466f add basic pages and api endpoints
ymh <ymh.work@gmail.com>
parents: 37
diff changeset
    14
    
0fe2f3f5466f add basic pages and api endpoints
ymh <ymh.work@gmail.com>
parents: 37
diff changeset
    15
    url(r'^api/1.0/', include('hp.api.urls')),
37
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
    16
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
    17
    # Uncomment the admin/doc line below to enable admin documentation:
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
    18
    # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
    19
38
0fe2f3f5466f add basic pages and api endpoints
ymh <ymh.work@gmail.com>
parents: 37
diff changeset
    20
37
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
    21
    # Uncomment the next line to enable the admin:
38
0fe2f3f5466f add basic pages and api endpoints
ymh <ymh.work@gmail.com>
parents: 37
diff changeset
    22
    url(r'^admin/', include(admin.site.urls)),
37
b4ed8cdc654c update virtualenv + create the first file structure
ymh <ymh.work@gmail.com>
parents:
diff changeset
    23
)